LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
257 stars 76 forks source link

ltfs_ordered_copy not honoring folder attr #392

Open svein opened 1 year ago

svein commented 1 year ago

Describe the bug It seems ltfs_ordered_copy does not copy folder permissions and attributes, but instead just create new folders. (os.mkdir(d)) with today's date and default permission from umask. This way all original attributes are lost including timestamp, permissions, etc.

To Reproduce Steps to reproduce the behavior: ltfs_ordered_copy version: git master ltfs_ordered_copy -v -a -p /mnt/ltfs/tape /some/path/ I have tried to run with flags, -a, -p and -r and different combinations.

Expected behavior attr for directories should be copied over like it is done for files.

piste-jp commented 1 year ago

I'm not sure the permission is important for LTFS. Because LTFS never stores any permissions on tape.