public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Josef Sipek <jsipek@fsl.cs.sunysb.edu>
To: Christoph Hellwig <hch@lst.de>
Cc: nick.couchman@seakr.com, xfs@oss.sgi.com
Subject: Re: [xfs-masters] [Bug 768]  New: Move restrict_chown to mount-time option
Date: Fri, 7 Sep 2007 15:15:31 -0400	[thread overview]
Message-ID: <20070907191531.GA22883@filer.fsl.cs.sunysb.edu> (raw)
In-Reply-To: <20070907190427.GA8062@lst.de>

On Fri, Sep 07, 2007 at 09:04:27PM +0200, Christoph Hellwig wrote:
> On Thu, Sep 06, 2007 at 12:10:06PM -0400, Josef Sipek wrote:
> > > It's quite easily doable.  I don't have time for that right now, but if
> > > anyone wants to do it's just adding the option to the mount option
> > > parser and adding a flag to the mount structure.
> >  
> > Wouldn't making this a generic mount-option make sense? Or is it far too
> > low-level of a concept?
> 
> Basically it's a simple boolean flag that's checked in the inode
> allocator when we decide about the permission of the newly created
> inode.  Because of that the implementation will be inherently
> filesystem-specific.

Couldn't that be done just before the call to ->create as a mask on the
mode?

> We could still add a binary mount flag for it in common code, but my
> stance is to only add these when we actually need to check the flag in
> general code.

Or if the feature is so useful that all fs should support it. Is it useful?
If not, then I agree, not cluttering the VFS is a Good Thing.

Josef 'Jeff' Sipek.

-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
		- Brian W. Kernighan 

  reply	other threads:[~2007-09-07 19:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200709051831.l85IVsTR016106@oss.sgi.com>
     [not found] ` <20070906153529.GA3062@lst.de>
2007-09-06 16:10   ` [xfs-masters] [Bug 768] New: Move restrict_chown to mount-time option Josef Sipek
2007-09-07 19:04     ` Christoph Hellwig
2007-09-07 19:15       ` Josef Sipek [this message]
2007-09-08 13:18         ` Christoph Hellwig

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=20070907191531.GA22883@filer.fsl.cs.sunysb.edu \
    --to=jsipek@fsl.cs.sunysb.edu \
    --cc=hch@lst.de \
    --cc=nick.couchman@seakr.com \
    --cc=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