[OpenIndiana-discuss] cp -p problem: extend system attributes

Marcel Telka marcel at telka.sk
Wed Mar 6 15:54:57 UTC 2013


On Tue, Mar 05, 2013 at 11:46:39AM +0100, Carsten Grzemba wrote:
> The problem is only with the spares attribute, so you need a file with the
> spares attribut set, eg.:
> 
> grzemba at oi-kvm:~$ ls -/c xscreensaver.sav
> -rw-r--r-- 1 grzemba staff 7276 Feb 25 2010 xscreensaver.sav
>  {---------s}
> 
> grzemba at oi-kvm:~$ cp -p xscreensaver.sav /tmp
> cp: Failed to copy extended system attributes from xscreensaver.sav to /tmp/xscreensaver.sav

I think this is because tmpfs does not support extended system attributes. If
you'll copy to a zfs it should work.

> 
> I do not know how to modify (set) system attributes. runat it not possible
> for system attributes I guess.

To set the sparse attribute you could use this:

/usr/bin/chmod S=cs xscreensaver.sav

-- 
+-------------------------------------------+
| Marcel Telka   e-mail:   marcel at telka.sk  |
|                homepage: http://telka.sk/ |
|                jabber:   marcel at jabber.sk |
+-------------------------------------------+



More information about the OpenIndiana-discuss mailing list