public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcin Slusarz <marcin.slusarz@gmail.com>
To: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] udf: implement mode and dmode mounting options
Date: Wed, 19 Nov 2008 19:14:57 +0100	[thread overview]
Message-ID: <20081119181427.GA29507@joi> (raw)
In-Reply-To: <20081119151605.GA29820@duck.suse.cz>

On Wed, Nov 19, 2008 at 04:16:06PM +0100, Jan Kara wrote:
> On Tue 18-11-08 16:22:05, Andrew Morton wrote:
> > On Sun, 16 Nov 2008 20:52:19 +0100
> > Marcin Slusarz <marcin.slusarz@gmail.com> wrote:
> > 
> > > "dmode" allows overriding permissions of directories and
> > > "mode" allows overriding permissions of files.
> > > 
> > > Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
> > > Cc: Jan Kara <jack@suse.cz>
> > > ---
> > >  Documentation/filesystems/udf.txt |    2 ++
> > >  fs/udf/inode.c                    |   11 +++++++++--
> > >  fs/udf/super.c                    |   31 ++++++++++++++++++++++++++++++-
> > >  fs/udf/udf_sb.h                   |    2 ++
> > >  4 files changed, 43 insertions(+), 3 deletions(-)
> > > 
> > > diff --git a/Documentation/filesystems/udf.txt b/Documentation/filesystems/udf.txt
> > > index fde829a..902b95d 100644
> > > --- a/Documentation/filesystems/udf.txt
> > > +++ b/Documentation/filesystems/udf.txt
> > > @@ -24,6 +24,8 @@ The following mount options are supported:
> > >  
> > >  	gid=		Set the default group.
> > >  	umask=		Set the default umask.
> > > +	mode=		Set the default file permissions.
> > > +	dmode=		Set the default directory permissions.
> > 
> > Can we give these the same names and usage as their fatfs equivalents?
>   Yes, making these options dmask and fmask would be more consistent I
> think. Martin?

You can't add permissions by umask/fmask/dmask. I have one DVD with top
level dir permissions set to 0000 and there's no way to read it now (as
an user) and adding mask options wouldn't change it.

I should mention in a changelog that the names and semantics of these
options are copied from isofs.

I can create a second patch which adds mask options but I think modes are
needed too. What do you think?

Marcin

  reply	other threads:[~2008-11-19 18:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-16 19:52 [PATCH] udf: implement mode and dmode mounting options Marcin Slusarz
2008-11-19  0:22 ` Andrew Morton
2008-11-19 15:16   ` Jan Kara
2008-11-19 18:14     ` Marcin Slusarz [this message]
2008-11-19 19:13       ` Jan Kara

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=20081119181427.GA29507@joi \
    --to=marcin.slusarz@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=jack@suse.cz \
    --cc=linux-kernel@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