hal: Branch 'master'

Martin Pitt martin.pitt at ubuntu.com
Tue Nov 11 02:14:21 PST 2008


Hi Danny,

thanks for your review.

Danny Kukawka [2008-11-10 14:09 +0100]:
> On Montag, 10. November 2008, Martin Pitt wrote:
> >  tools/hal-storage-mount.c |    2 ++
> >  1 file changed, 2 insertions(+)
> >
> > New commits:
> > commit 25f9536d8cd4ff534eb73dc603a38b7d64ebf81e
> > Author: Michael Biebl <biebl at debian.org>
> > Date:   Mon Nov 10 13:33:48 2008 +0100
> >
> >     allow uid/gid mount option for ntfs
> >
> >     Allow uid/gid mount option for ntfs, as reported in
> >     http://bugs.debian.org/427109.
> >
> > diff --git a/tools/hal-storage-mount.c b/tools/hal-storage-mount.c
> > index 741b362..a29c8f3 100644
> > --- a/tools/hal-storage-mount.c
> > +++ b/tools/hal-storage-mount.c
> > @@ -787,6 +787,8 @@ handle_mount (LibHalContext *hal_ctx,
> >  		 * (since these doesn't contain uid/gid bits)
> >  		 */
> >  		if (strcmp (libhal_volume_get_fstype (volume), "vfat") != 0 &&
> > +		    strcmp (libhal_volume_get_fstype (volume), "ntfs") != 0 &&
> > +		    strcmp (libhal_volume_get_fstype (volume), "ntfs-3g") != 0 &&
> >  		    strcmp (libhal_volume_get_fstype (volume), "iso9660") != 0 &&
> >  		    strcmp (libhal_volume_get_fstype (volume), "hfs") != 0 &&
> >  		    strcmp (libhal_volume_get_fstype (volume), "udf") != 0) {
> 
> Not sure if this is the correct fix. Especially since both filesystems support 
> uid= and gid= as mount parameter, while the comment above the if() say they 
> don't.

I understood this patch differently. vfat, iso9660, etc. file systems
do not have a concept of uid/gid, which is why they are mapped to
'root' by default, and mount provides uid=/gid= options to assing them
to someone else by default. ntfs does support uids (AFAIK, haven't
ever used it in practice), but they are not related at all to Linux
UIDs, and thus shouldn't really be used when mounting under Linux.
Thus ntfs should use mount's uid=/gid= overwriting, similar to vfat.

But I might have misunderstood it, of course. Michael, can you please
clarify?

Thanks,

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20081111/2c224788/attachment.pgp 


More information about the hal mailing list