Ticket #2468 (new enhancement)

Opened 13 years ago

Last modified 3 months ago

Preserve extended attributes while copy

Reported by: Kroz Owned by:
Priority: minor Milestone: Future Releases
Component: mc-core Version: master
Keywords: extended attributes Cc: gotar@…, sendsbeak@…, andrey.gursky@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Extended attributes are nice to store comments and keywords to files.

Set an extended attribute to a file:
$ attr -s variable -V "value" filename.txt

Now see it:
$ attr -l filename.txt

If you copy such file with mc, extended attribute will be absent for file's copy.
It would be nice to have an option like "preserve Extended attributes" to let mc copy extended attributes as well.

Change History

comment:1 Changed 13 years ago by andrew_b

  • Version changed from version not selected to master
  • Milestone set to Future Releases

comment:2 Changed 13 years ago by gotar

  • Cc gotar@… added

comment:3 Changed 13 years ago by snzk

  • Cc sendsbeak@… added
  • Branch state set to no branch

comment:4 Changed 8 years ago by ag

  • Cc andrey.gursky@… added

comment:5 Changed 6 years ago by andrew_b

Ticket #3910 has been marked as a duplicate of this ticket.

comment:6 Changed 3 months ago by fedy

Any chance of this getting implemented (especially for file move)?

I've been using Midnight Commander for about 20 years now and I still really like it, but recently I started to make a heavy use of user extended attributes and unfortunately mc is one of the few file managers that still don't support it.

It's somewhat OK on copy operations when you notice in time (you can transfer the xattrs manually from the original), but it can be really infuriating on a file move where everything is fine with moves within a mounted volume, but once you move a file to a different drive/partition you irrevocably loose all the metadata you put into the xattrs.

NOTE:
The attr command mentioned above seem to be XFS specific. The generic (filesystem agnostic) commands these days are getfattr, setfattr etc.

comment:7 Changed 3 months ago by zaytsev

Can you mention any managers supporting it by default? Maybe we can steal code from them.

Note: See TracTickets for help on using tickets.