diff options
author | Matt Kraai <kraai@debian.org> | 2001-12-17 15:26:36 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2001-12-17 15:26:36 +0000 |
commit | ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733 (patch) | |
tree | 1dec04901febc0fd63ac5b92bc2cca4333689477 /libbb/inode_hash.c | |
parent | 46ea0e4696456061ad7ce799658f737c24f781a6 (diff) | |
download | busybox-w32-ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733.tar.gz busybox-w32-ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733.tar.bz2 busybox-w32-ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733.zip |
Make cp and mv optionally preserve hard links.
Diffstat (limited to 'libbb/inode_hash.c')
-rw-r--r-- | libbb/inode_hash.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c index 52c54cdc1..36484e6ae 100644 --- a/libbb/inode_hash.c +++ b/libbb/inode_hash.c | |||
@@ -29,6 +29,13 @@ | |||
29 | #define HASH_SIZE 311 /* Should be prime */ | 29 | #define HASH_SIZE 311 /* Should be prime */ |
30 | #define hash_inode(i) ((i) % HASH_SIZE) | 30 | #define hash_inode(i) ((i) % HASH_SIZE) |
31 | 31 | ||
32 | typedef struct ino_dev_hash_bucket_struct { | ||
33 | struct ino_dev_hash_bucket_struct *next; | ||
34 | ino_t ino; | ||
35 | dev_t dev; | ||
36 | char name[1]; | ||
37 | } ino_dev_hashtable_bucket_t; | ||
38 | |||
32 | static ino_dev_hashtable_bucket_t *ino_dev_hashtable[HASH_SIZE]; | 39 | static ino_dev_hashtable_bucket_t *ino_dev_hashtable[HASH_SIZE]; |
33 | 40 | ||
34 | /* | 41 | /* |