[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: cp/mv and extended attributes preservation
On Wed, Jul 27, 2011 at 08:13:14AM +0000, Emmanuel Dreyfus wrote:
> On Wed, Jul 27, 2011 at 07:21:00AM +0200, Joerg Sonnenberger wrote:
> > I classify EAs the same way as suid/sgid bits. Also it seems like e.g.
> > coreutils doesn't copy them by default.
> How do one tell Linux cp(1) to copy them? I see no flag for that in the
> man page.
Reading the source, they have a --preserve=list where list is comma-separated
list of mode,ownership,timestamp,xattr. -p means --preserve with everything
On MacOS X, -p copies extended attributes, and -X disable copying extended
So we can go for -p to preserver extended attributes in cp(1). mv(1)
should probably do it by default, otherwise we have a kinky difference
between moving within a filesystem, and accress filesystems.
Main Index |
Thread Index |