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

Carsten Grzemba grzemba at contac-dt.de
Thu Mar 7 07:24:46 UTC 2013



Am 06.03.13 schrieb Marcel Telka  <marcel at telka.sk>:
> 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.
> 
Yes, this is ok.

> 
> 

> 
> 
> > 
> > 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
> 
Thank you for this hint. (the oposite command to reset: chmod S-cs xscreensaver.sav)
I investigate further: The same behaviour is on the Solaris 11 NFS Server, there on the SAM-FS:
 $ ls -/c xscreensaver.sav
-rw-r--r-- 1 grzemba staff 7276 Feb 25 2010 xscreensaver.sav
 {---------s}
$ chmod S-cs xscreensaver.sav
chmod: ERROR: cannot set the following attributes on xscreensaver.sav: not supported
 {nosparse}
$ cp -p xscreensaver.sav xscreensaver.sav.0
cp: Failed to copy extended system attributes from xscreensaver.sav to xscreensaver.sav.0
$ uname -a
SunOS fsrv 5.11 11.1 i86pc i386 i86pc

Which is a inconsistent behaviour of SAM-FS for me (Bug).

Carsten

> 
> 
> -- 
> +-------------------------------------------+
> | Marcel Telka e-mail: marcel at telka.sk |
> | homepage: http://telka.sk/ |
> | jabber: marcel at jabber.sk |
> +-------------------------------------------+
> 
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 


More information about the OpenIndiana-discuss mailing list