Wayne Davison
97feb557ed
Set stats.current_file_index.
2004-01-13 18:22:43 +00:00
Wayne Davison
dc8293ff73
Added current_file_index.
2004-01-13 18:22:13 +00:00
Wayne Davison
785db4ced0
Merged a couple more f != -1 if sections.
2004-01-13 06:27:30 +00:00
Wayne Davison
5562deb169
Moved a couple externs.
2004-01-13 05:13:57 +00:00
Wayne Davison
983b1ed321
Merged some "if (f != -1)" checks, put the clean_flist() call in the
...
right spot, and moved some externs.
2004-01-13 05:11:56 +00:00
Wayne Davison
548abf96ce
Relocated some externs.
2004-01-13 04:50:45 +00:00
Wayne Davison
f8ebdf9265
More hard-link stuff.
2004-01-12 03:59:53 +00:00
Wayne Davison
aa23c22004
Changed the hard-link check.
2004-01-12 03:50:07 +00:00
Wayne Davison
1d5cda2265
Updated to perform a much more efficient hlink algorithm that doesn't
...
require any binary searching of hlink data.
2004-01-12 03:49:47 +00:00
Wayne Davison
fe70ad26d3
Added F_HEAD and F_NEXT defines.
2004-01-12 03:48:43 +00:00
Wayne Davison
0a00748901
Mention more of the latest changes.
2004-01-11 22:39:34 +00:00
Wayne Davison
03979352b4
More cleanup, fixing an error in the fatal-message strings that tried
...
to output the "filename" value when it might not be initialized.
2004-01-11 22:11:25 +00:00
Wayne Davison
cb7fb45e42
Updated a questioning comment.
2004-01-11 08:17:19 +00:00
Wayne Davison
92cc9dd7c2
Use the new dev+inode union in the flist_struct.
2004-01-11 07:56:14 +00:00
Wayne Davison
88a7fb3edd
Moved the inode & dev items out of the flist_struct. Based on a
...
preliminary patch by J.W.
2004-01-11 07:55:53 +00:00
Wayne Davison
728d092201
Use the new union-ified flist_struct values.
2004-01-11 07:28:45 +00:00
Wayne Davison
80707c983c
Put 3 flist_struct items into a union: rdev, sum, and link (all
...
mutually exclusive based on mode). Based on an idea by J.W.
2004-01-11 07:28:23 +00:00
Wayne Davison
5911fee567
A slightly better reset mechanism for send_file_entry() and
...
receive_file_entry().
2004-01-10 22:13:19 +00:00
Wayne Davison
a09f6f55da
Use the new LIVE_FLAGS define to fix a potential flag problem.
2004-01-10 21:10:04 +00:00
Wayne Davison
caf5cc9152
Added LIVE_FLAGS define.
2004-01-10 21:09:06 +00:00
Wayne Davison
58422e8393
Changed the call to write_batch_csum_info() to the latest syntax.
2004-01-10 20:16:18 +00:00
Wayne Davison
e8d3168e3a
Massive rewrite to replace the file-list read/write code with calls to
...
send_file_entry() and receive_file_entry(). Other cleanups too.
2004-01-10 20:16:13 +00:00
Wayne Davison
7b1a0c19b8
Allow the send_file_entry() and receive_file_entry() routines to be
...
called by the batch processor.
2004-01-10 20:15:55 +00:00
Wayne Davison
536492752b
Support the recent changes in the flist_struct.
2004-01-10 08:39:57 +00:00
Wayne Davison
7c4f063b13
Got rid of tmpsum[].
2004-01-09 18:35:41 +00:00
Wayne Davison
1a62c49d31
Note latest changes.
2004-01-09 18:27:15 +00:00
Wayne Davison
fea4db62bd
- Never allocate a useless sum array for a non-regular flist item.
...
- Don't transmit the sum array for non-regular files (p28 onward).
- Tweaked a couple comments.
2004-01-09 18:19:32 +00:00
Wayne Davison
4499c0eebd
A couple minor code improvements.
2004-01-09 18:10:31 +00:00
Wayne Davison
0c42946536
Added an extra comment.
2004-01-09 16:53:55 +00:00
J.W. Schultz
ab264c9e79
Added a few more devices to the devices.test to hopefully
...
test same, same high and different device numbers.
2004-01-09 14:02:00 +00:00
J.W. Schultz
dd7fb70f6e
Finished the last_* renameing and fixed a cast..
2004-01-09 13:55:56 +00:00
Wayne Davison
30f337c9ef
Updated the send_file_name() and receive_file_entry() functions to make
...
some of the variable names more logical in the new program flow. Also
improved the setting of the new last_rdev value that only remembers the
high 3 bytes.
2004-01-08 22:45:12 +00:00
Wayne Davison
9d35271938
Changed the OLD_SAME_RDEV define to SAME_RDEV_pre28.
2004-01-08 22:45:07 +00:00
Wayne Davison
bbfb1d016b
Added explicit call to AC_PROG_EGREP.
2004-01-08 18:33:38 +00:00
Wayne Davison
c4b4df4fb4
Optimized the sending of dev+inode data for hard-linking support
...
(but only when speaking protocol 28).
2004-01-08 11:29:50 +00:00
Wayne Davison
a6d89d18bf
- Added flags HAS_INODE_DATA and SAME_DEV.
...
- Changed PROTOCOL_VERSION to 28 now.
2004-01-08 11:28:07 +00:00
Wayne Davison
75bc860093
Implemented an extended-flag-byte in the transfer protocol by moving
...
the SAME_RDEV bit into the next 8 bits and adding an EXTENDED_FLAG
bit. Also modified the meaning of this bit for protocol 28 and above:
SAME_HIGH_RDEV indicates that all but the lowest byte matches. The
older protocols get OLD_SAME_RDEV set (with the old semantics) for
compatibility. Note also that protocol 28 isn't turned on yet.
2004-01-08 11:08:30 +00:00
Wayne Davison
02a279a75f
Added EXTENDED_FLAGS and SAME_HIGH_RDEV. Changed SAME_RDEV to OLD_SAME_RDEV.
2004-01-08 11:08:30 +00:00
Wayne Davison
584c7bf76d
Pass the $srcdir/wildtest.txt file on the command-line to wildtest.
2004-01-08 09:00:14 +00:00
Wayne Davison
c4cd2ca6bf
We now take a TESTFILE arg on the command-line.
2004-01-08 08:59:52 +00:00
Wayne Davison
1ef00d2072
Improved the code in send_file_entry() and receive_file_entry() to
...
make it a little easier to read and a little more optimized. Also
made the flag size in our function calls match the size of the flags
in the flist_struct. These changes will make it easier for me to
optimize the sending of the hard-link data in a future commit.
2004-01-08 04:56:27 +00:00
Wayne Davison
4dd4c72790
Made the flags in the file_struct a little smaller.
2004-01-08 04:53:16 +00:00
Wayne Davison
6aae748ea7
- No need to check S_ISREG() on files already in the hlink_list.
...
- The realloc in init_hard_links() might fail if the list is empty
(which can happen if there are no regular files in the transfer).
I changed the code to free the list in that case.
2004-01-08 03:17:07 +00:00
Wayne Davison
aa953c3201
Old-protocols.
2004-01-08 00:47:17 +00:00
Wayne Davison
3f55bd5dad
Got rid of support for protocols 17 and 18.
2004-01-08 00:45:41 +00:00
J.W. Schultz
279b1c1ebb
Noted hardlink memory footprint reduction.
2004-01-07 11:38:23 +00:00
J.W. Schultz
fa45cda1aa
Cosmetic changes to file_compare() for readability and to
...
match hlink_compare()
2004-01-07 09:11:56 +00:00
J.W. Schultz
11dc274054
Change hlink_list so we only have a list of pointers to
...
file_struct instead of a copy of the file_struct list.
2004-01-07 09:06:37 +00:00
Wayne Davison
e7bef92205
Batch-mode fix.
2004-01-06 05:35:55 +00:00
Wayne Davison
4a1991d7c5
Fixed a byte-order problem for batch-file processing on big-endian
...
systems (reported by Jay Fenlason).
2004-01-06 05:33:02 +00:00