diff options
author | Martin Pool <mbp@samba.org> | 2002-01-11 08:25:32 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-11 08:25:32 +0000 |
commit | 6abd193fe3f8e7b986c388e7642adc08516e8279 (patch) | |
tree | 2cdc5595b1d8d8bc62cf7077e10b06a5e0b60237 /batch.c | |
parent | 362099a51230fd80c6d54ef6f0e72927529c8dfb (diff) | |
download | rsync-6abd193fe3f8e7b986c388e7642adc08516e8279.tar.gz rsync-6abd193fe3f8e7b986c388e7642adc08516e8279.tar.bz2 rsync-6abd193fe3f8e7b986c388e7642adc08516e8279.zip |
Always use 64-bit ino_t and dev_t internally, so that we can detect
hardlinks if coming from a larger platform. Add heaps of comments
explaining why this is so.
Diffstat (limited to 'batch.c')
-rw-r--r-- | batch.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -88,8 +88,8 @@ void write_batch_flist_info(int flist_count, struct file_struct **fptr) sizeof(time_t) + sizeof(OFF_T) + sizeof(mode_t) + - sizeof(INO_T) + - (2 * sizeof(dev_t)) + sizeof(uid_t) + sizeof(gid_t); + sizeof(INO64_T) + + (2 * sizeof(DEV64_T)) + sizeof(uid_t) + sizeof(gid_t); fdb_open = 1; fdb_close = 0; @@ -289,8 +289,8 @@ void read_batch_flist_info(struct file_struct **fptr) read_batch_flist_file((char *) &file->modtime, sizeof(time_t)); read_batch_flist_file((char *) &file->length, sizeof(OFF_T)); read_batch_flist_file((char *) &file->mode, sizeof(mode_t)); - read_batch_flist_file((char *) &file->inode, sizeof(INO_T)); - read_batch_flist_file((char *) &file->dev, sizeof(dev_t)); + read_batch_flist_file((char *) &file->inode, sizeof(INO64_T)); + read_batch_flist_file((char *) &file->dev, sizeof(DEV64_T)); read_batch_flist_file((char *) &file->rdev, sizeof(dev_t)); read_batch_flist_file((char *) &file->uid, sizeof(uid_t)); read_batch_flist_file((char *) &file->gid, sizeof(gid_t)); |