xfs
[Top] [All Lists]

Re: [RFE] --reference option for setfattr

To: Ales Zelinka <azelinka@xxxxxxxxxx>
Subject: Re: [RFE] --reference option for setfattr
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Mon, 22 Dec 2008 08:01:03 -0500
Cc: linux-xfs@xxxxxxxxxxx, Andreas Gruenbacher <agruen@xxxxxxx>
In-reply-to: <49101B02.60004@xxxxxxxxxx>
References: <49101B02.60004@xxxxxxxxxx>
User-agent: Mutt/1.5.18 (2008-05-17)
On Tue, Nov 04, 2008 at 10:50:58AM +0100, Ales Zelinka wrote:
> currently when I want to copy all extended attributes from one file to  
> another, I have to use ugly command like this:
>
> getfattr --dump -m '-' /etc/samba/smb.conf |sed 's;file:  
> etc/samba/smb.conf;file: /tmp/smb.conf;'| setfattr --restore=-
>
> Would you please implement --reference=some_file option that will read  
> all extended attributes set on some_file and set them on pathname?
>
> The previous use case would then look like this:
>
> setfattr --reference=/etc/samba/smb.conf /tmp/smb.conf
>
> Other commands from file-attributes-manipulation familly already have  
> parameter like this (chmod, chown, chcon,...)

This feature seems useful to me, any chance you could try coming up with
a patch?

<Prev in Thread] Current Thread [Next in Thread>