patch-2.3.99-pre9 linux/scripts/cramfs/mkcramfs.c
Next file: linux/scripts/header.tk
Previous file: linux/net/unix/af_unix.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Sat May 20 11:30:31 2000
- Orig file:
v2.3.99-pre8/linux/scripts/cramfs/mkcramfs.c
- Orig date:
Fri May 12 14:18:56 2000
diff -u --recursive --new-file v2.3.99-pre8/linux/scripts/cramfs/mkcramfs.c linux/scripts/cramfs/mkcramfs.c
@@ -45,7 +45,7 @@
/* The kernel assumes PAGE_CACHE_SIZE as block size. */
static unsigned int blksize = PAGE_CACHE_SIZE;
-static int warn_dev, warn_gid, warn_link, warn_namelen, warn_size, warn_uid;
+static int warn_dev, warn_gid, warn_namelen, warn_size, warn_uid;
#ifndef MIN
# define MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))
@@ -224,21 +224,6 @@
perror("mmap");
exit(5);
}
- if (st.st_nlink > 1) {
- /* TODO: Although cramfs doesn't
- support hard links, we could still
- share data offset values between
- different inodes (safe because
- read-only). This would give at
- least the space saving of hard
- links. Just keep a hash mapping
- <st_ino, st_dev> onto struct
- entry*. Alternatively, steal some
- code from Roger Wolff's `same'
- program, which creates a hash of
- file data contents. */
- warn_link = 1;
- }
}
close(fd);
} else if (S_ISLNK(st.st_mode)) {
@@ -618,11 +603,6 @@
if (warn_namelen) /* (can't happen when reading from ext2fs) */
fprintf(stderr, /* bytes, not chars: think UTF8. */
"warning: filenames truncated to 255 bytes.\n");
- if (warn_link)
- fprintf(stderr,
- "warning: cramfs cannot represent hard links. You may want to change hard links in\n"
- " %s with symlinks to other files in %s.\n",
- dirname, dirname);
if (warn_size)
fprintf(stderr,
"warning: file sizes truncated to %luMB (minus 1 byte).\n",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)