summaryrefslogtreecommitdiff
path: root/libbb/inode_hash.c
diff options
context:
space:
mode:
authorMatt Kraai2001-12-17 15:26:36 +0000
committerMatt Kraai2001-12-17 15:26:36 +0000
commitace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733 (patch)
tree1dec04901febc0fd63ac5b92bc2cca4333689477 /libbb/inode_hash.c
parent46ea0e4696456061ad7ce799658f737c24f781a6 (diff)
downloadbusybox-ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733.zip
busybox-ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733.tar.gz
Make cp and mv optionally preserve hard links.
Diffstat (limited to 'libbb/inode_hash.c')
-rw-r--r--libbb/inode_hash.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c
index 52c54cd..36484e6 100644
--- a/libbb/inode_hash.c
+++ b/libbb/inode_hash.c
@@ -29,6 +29,13 @@
#define HASH_SIZE 311 /* Should be prime */
#define hash_inode(i) ((i) % HASH_SIZE)
+typedef struct ino_dev_hash_bucket_struct {
+ struct ino_dev_hash_bucket_struct *next;
+ ino_t ino;
+ dev_t dev;
+ char name[1];
+} ino_dev_hashtable_bucket_t;
+
static ino_dev_hashtable_bucket_t *ino_dev_hashtable[HASH_SIZE];
/*