summaryrefslogtreecommitdiffstats
path: root/scripts/cramfs
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-15 01:55:58 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-15 01:55:58 +0000
commit53b3988d474435254a3b053a68bb24ce9e439295 (patch)
treef8da8e40f01f4ad02bbd76b8c9920749b118235f /scripts/cramfs
parentb0cb48abe83d1a4389ea938bf624f8baa82c5047 (diff)
Merge with 2.3.99-pre9.
Diffstat (limited to 'scripts/cramfs')
-rw-r--r--scripts/cramfs/mkcramfs.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/scripts/cramfs/mkcramfs.c b/scripts/cramfs/mkcramfs.c
index 51dbbd35b..36b12df49 100644
--- a/scripts/cramfs/mkcramfs.c
+++ b/scripts/cramfs/mkcramfs.c
@@ -45,7 +45,7 @@ static void usage(void)
/* 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 @@ static unsigned int parse_directory(struct entry *root_entry, const char *name,
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 @@ int main(int argc, char **argv)
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",