- Added a new function, maybe_hard_link(), which now holds the code
authorWayne Davison <wayned@samba.org>
Sat, 23 Apr 2005 17:48:34 +0000 (17:48 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 23 Apr 2005 17:48:34 +0000 (17:48 +0000)
commit3cd5301f401add0bfab69c28e8c82e62c40f31db
tree02e72f04d3289ef8616c8f34f70752853b94164a
parentd8169e6f6bfc312f0ecf603616fb462ff8230e9d
- Added a new function, maybe_hard_link(), which now holds the code
  (moved from hard_link_cluster()) that checks the inode/dev of an
  existing file and either does nothing (when properly linked), or
  removes the existing file before calling hard_link_one().
- Changed hard_link_check() so that it checks if the master item is
  marked with FINISHED_LINK (in its hlindex int), and if so, it
  finishes the current file by calling maybe_hard_link() (and
  marking it as finished too).  Otherwise it marks the item as
  skipped by setting hlindex to SKIPPED_LINK.
- Fixed the outputting of an error in hard_link_one() so that the
  message is always output when the caller did not request "terse"
  processing.
- Changed hard_link_cluster() so that it marks the master item with
  FINISHED_LINK and then links only the skipped items (marking them
  with FINISHED_LINK too).
hlink.c