linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: Filipe David Manana <fdmanana@gmail.com>
Cc: kreijack@inwind.it,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: [RFC PATCH] Btrfs: add support for inode properties
Date: Tue, 12 Nov 2013 20:07:27 +0000	[thread overview]
Message-ID: <20131112200727.GG4315@carfax.org.uk> (raw)
In-Reply-To: <CAL3q7H7mF2sPT7+xR6ArbkdTnN1bWd4v6=woD9rDAZCtxf5aig@mail.gmail.com>

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

On Tue, Nov 12, 2013 at 08:04:47PM +0000, Filipe David Manana wrote:
> On Tue, Nov 12, 2013 at 7:24 PM, Goffredo Baroncelli <kreijack@libero.it> wrote:
> > Hi Filipe,
> 
> Hi
> 
> >
> > On 2013-11-12 14:42, Filipe David Borba Manana wrote:
> >> This change adds infrastructure to allow for generic properties for
> >> inodes via a new ioctl.
> >
> > I am sure that there is a valid reason, but I was not able to find it:
> > why implement a new ioctl instead of using the *{set,get)xattr(2) syscall ?
> 
> Those require one of the following name prefixes: "user.",
> "security.", "trusted." or "system.". Only "user." can be set from
> user space and requires no special privileges/capabilities (if you
> have the necessary permissions on the target inode).

   Why only that limited set? Is that limited by POSIX, or executive
fiat? Is there any likelihood of us getting an additional namespace?
(fs.* maybe?)

   Hugo.

> It could be implemented via the "user." prefix, like
> "user.btrfs.something" for example - but it can break user
> applications if they use such prefix already, and we want to validate
> the values set for such properties too.
> 
> >
> > I noticed that you implemented the Compression properties set/get: is
> > this from "chattr -c" ?
> 
> With chattr -c you can't specify the compression algorithm - it will
> use the default (zlib) or the one you specified via mount options.
> 
> thanks
> 
> >
> > [... cut other lines ... ]
> >
> > G.Baroncelli
> >

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
    --- I write in C because using pointer arithmetic lets people ---    
               know that you're virile. -- Matthew Garrett               

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

  reply	other threads:[~2013-11-12 20:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-12 13:42 [RFC PATCH] Btrfs: add support for inode properties Filipe David Borba Manana
2013-11-12 19:24 ` Goffredo Baroncelli
2013-11-12 20:04   ` Filipe David Manana
2013-11-12 20:07     ` Hugo Mills [this message]
2013-11-13  0:30       ` Filipe David Manana
2013-11-13  1:21 ` [PATCH V2] " Filipe David Borba Manana
2013-11-13 18:59   ` Goffredo Baroncelli
2013-11-19 16:06     ` Filipe David Manana
2013-11-19 17:44       ` Goffredo Baroncelli
2013-11-19 16:00 ` [PATCH v3] " Filipe David Borba Manana
2014-01-07 11:47 ` [RFC PATCH v4] " Filipe David Borba Manana

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=20131112200727.GG4315@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=fdmanana@gmail.com \
    --cc=kreijack@inwind.it \
    --cc=linux-btrfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).