All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Ales Zelinka <azelinka@redhat.com>
Cc: linux-xfs@oss.sgi.com
Subject: Re: [RFE] --reference option for setfattr
Date: Mon, 22 Dec 2008 08:01:03 -0500	[thread overview]
Message-ID: <20081222130103.GA12367@infradead.org> (raw)
In-Reply-To: <49101B02.60004@redhat.com>

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?

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2008-12-22 13:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  9:50 [RFE] --reference option for setfattr Ales Zelinka
2008-12-22 13:01 ` Christoph Hellwig [this message]
2008-12-22 13:47   ` Andreas Gruenbacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081222130103.GA12367@infradead.org \
    --to=hch@infradead.org \
    --cc=azelinka@redhat.com \
    --cc=linux-xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.