[lkml]   [2005]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [2.6-GIT] NTFS: Release 2.1.24.
On Sun, 11 Sep 2005, Horst von Brand wrote:
> Anton Altaparmakov <> wrote:
> > On Sat, 10 Sep 2005, Giuseppe Bilotta wrote:
> [...]
> > > BTW Anton, while looking for the best permission masks to be used when
> > > mounting my NTFS paritions, I spotted what I think is a bug, or at
> > > least an inconsistency between the way all fs drivers I use handle
> > > umasks & friends, and the way NTFS does it. Basically, all the other
> > > fs drivers take an octal representation of the masks. NTFS, instead,
> > > seems to use _decimal_
> > NTFS takes any. It is happy with octal, decimal, and hex. The ntfs
> > driver uses linux/lib/vsprintf.c::simple_strtoul() with a zero base which
> > autodetects which base to use so if you use umask=0222 it will take this
> > as octal and if you use umask=222 it will take this as decimal and if you
> > use 0x222 it will take this as decimal.
> > I do not see what is wrong with that. It behaves exactly like I would
> > expect it to. Maybe I have strange expectations? (-;
> At least chmod(1) takes /only/ octal, so 666 isn't the number of the beast,
> but plain rw for everybody ;-)

Ah, oops. I don't think I ever noticed that. I always have given it
0xyz, i.e. "proper" octal.

> I think this should be consistent with that.

Yes, I fully agree. It should be consistent. I will patch ntfs and send
it to Linus for 2.6.14.

Thanks to both of you for pointing this out.

Best regards,

Anton Altaparmakov <aia21 at> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on
WWW: &
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-09-12 11:10    [W:0.065 / U:0.808 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site