Repository navigation
Conversation
XV02
left a comment
There was a problem hiding this comment.
Thanks for your work, please review the comments :DD
e740f18 to
932b0cf
Compare
… only those. Directories skipped without -r, plain-file sources, and empty directories outside the moved trees are now left untouched. Recursive moves still replicate the full tree.
directory mode, timestamps, and xattrs were never carried over. Snapshot each source directory's stat during the walk before any files are moved out, since removing a file bumps its parent's mtime and apply mode + timestamps (with -p) and xattrs (with --all) to the destination in a final pass after all files are written
XV02
left a comment
There was a problem hiding this comment.
Thanks for all your work on this change, LGTM!
Resolve the conflict in src/utils/ltfs_ordered_copy by re-applying the --move feature on top of the target's refactored copy path (the progress-based _run_copy/copyfileobj from LinearTapeFileSystem#586 and the single-file fix from LinearTapeFileSystem#599). The move now performs its post-copy source removal after _run_copy (so it also gets the progress bar), threads the move flag through CopyItem/walk_dir, and keeps the scoped directory pruning and the directory-metadata snapshot pass. LinearTapeFileSystem#599's keep_tree/single-file fix now comes from the target, so it is no longer carried on this branch. Verified on local disk: recursive move prunes the source and preserves directory mode/mtime; a non-recursive directory is left untouched.
|
Hi @hugo-hur ! We agreed that this change can be merged into our next release, 2.4.9.2. Since for the previous release process some PRs got squashed, git might be marking some changes incorrectly in this PR when we switched the base branch, if this happened please merge your branch with the release/2.4.9.2 and please confirm there are no conflicts so we can merge it with the new release branch. Thank you for your contribution! |
…dered_copy-add-move # Conflicts: # src/tape_drivers/hp_tape.c # src/utils/ltfs_ordered_copy
Merged release/v2.4.9.2 into the branch. Diff now only touches ltfs_ordered_copy and its man pages, no conflicts remain. |
Summary of changes
This pull request includes following changes or fixes.
it has been successfully copied to the destination, so the LTFS tape read
order is preserved and no data is lost if a copy fails.
Description
(or a failed source removal) leaves the source in place.
bottom-up; directories still holding files (e.g. a copy failed, or a
non-recursive directory was skipped) are left untouched.
Checklist: