public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Ales Zelinka <azelinka@redhat.com>
To: linux-xfs@oss.sgi.com
Subject: [RFE] --reference option for setfattr
Date: Tue, 04 Nov 2008 10:50:58 +0100	[thread overview]
Message-ID: <49101B02.60004@redhat.com> (raw)

Hello,

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,...)

Thanks

Ales Zelinka

             reply	other threads:[~2008-11-04  9:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  9:50 Ales Zelinka [this message]
2008-12-22 13:01 ` [RFE] --reference option for setfattr Christoph Hellwig
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=49101B02.60004@redhat.com \
    --to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox