public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH v3] xattr: centralize the various shims in one place
Date: Sat, 30 May 2015 15:59:46 -0400	[thread overview]
Message-ID: <20150530195946.GA4496@vapier> (raw)
In-Reply-To: <556A0D9D.7080400@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 982 bytes --]

On 30 May 2015 12:21, Zac Medico wrote:
> On 05/30/2015 08:14 AM, Mike Frysinger wrote:
> > +	@classmethod
> > +	def list(cls, item, nofollow=False, namespace=None, _names_only=True):
> > +		cmd = ['getfattr', '-d', '--absolute-names', item]
> 
> All getfattr calls need to use -m- ('-' pattern means match all) in
> order to list all attributes.

i use -m already.  here's a bit more of that function:

    def list(cls, item, nofollow=False, namespace=None, _names_only=True):
        cmd = ['getfattr', '-d', '--absolute-names', item]
        if nofollow:
            cmd += ['-h']
        cmd += ['-m', ('^%s[.]' % namespace) if namespace else '']
        proc = cls._call(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

so when there's no namespace specified, it ends up doing:
	getfattr -d --absolute-names /path/file -m ''

which is effectively the same thing, but i can change the '' to '-' since that's 
what the documentation suggests.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2015-05-30 19:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-16 21:03 [gentoo-portage-dev] [PATCH] xattr: centralize the various shims in one place Mike Frysinger
2013-10-17  0:02 ` Arfrever Frehtes Taifersar Arahesis
2013-10-17  2:51   ` Mike Frysinger
2013-10-17  2:53     ` Mike Frysinger
2013-10-17  3:42       ` Arfrever Frehtes Taifersar Arahesis
2013-10-21  3:00         ` Mike Frysinger
2013-10-22 15:59           ` Arfrever Frehtes Taifersar Arahesis
2013-10-21  3:07 ` [gentoo-portage-dev] [PATCH v2] " Mike Frysinger
2013-10-22 16:09   ` Arfrever Frehtes Taifersar Arahesis
2015-05-30 15:14 ` [gentoo-portage-dev] [PATCH v3] " Mike Frysinger
2015-05-30 19:21   ` Zac Medico
2015-05-30 19:59     ` Mike Frysinger [this message]
2015-05-30 20:26   ` Mike Frysinger
2015-05-30 20:59 ` [gentoo-portage-dev] [PATCH v4] " Mike Frysinger
2015-06-10 15:46   ` Mike Frysinger
2015-06-10 18:54   ` Zac Medico
2015-06-11  5:39     ` Mike Frysinger
2015-06-11  5:43       ` Zac Medico
2015-06-11  7:06         ` Brian Dolbec
2015-06-12 12:46           ` Alexander Berntsen
2015-09-03 17:53   ` Mike Frysinger

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=20150530195946.GA4496@vapier \
    --to=vapier@gentoo.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /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