[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fuse-devel
Subject:    Re: [fuse-devel] fuse example 'fusexmp.c' doesn't work as download
From:       Nikolaus Rath <Nikolaus () rath ! org>
Date:       2009-12-10 21:38:17
Message-ID: 87tyvybjcm.fsf () vostro ! rath ! org
[Download RAW message or body]

Sven Utcke <utcke@informatik.uni-hamburg.de> writes:
> Hello Nikolaus,
>
>> >> > user1@UbuntuVM:~/workspace/fuse/fusetest$ ./fusexmp Fusexmp/
>> >> > user1@UbuntuVM:~/workspace/fuse/fusetest$ ls -l
>> >> > insgesamt 1752
>> >> > -rwxr-xr-x  1   user1 user1   15565 2009-12-04 10:19 fusexmp
>> >> > drwxr-xr-x 21 root    root       4096 2009-10-20 14:22 Fusexmp
>> >> > -rw-r--r--    1   user1 user1    9646 2009-12-07 11:03 fusexmp.c
>> >> 
>> >> Which uid and gid does the getattr() function of your file system return
>> >> for '/'?
>> >
>> > The results are:
>> >
>> > call: xmp_getattr
>> > call: ------> path: '/'
>> > call: uid: '0'
>> > call: gid: '0'
>> >
>> > But why I get the root rights for the mountdir 
>> > after starting of fuse?
>> 
>> Because you told FUSE to do so. If you don't want the directory to be
>> owned by root, don't return uid=gid=0 for it but the UID of the user
>> that should be owner of the directory.
>> 
>> Wild guess: You are aware that '/' refers to the root of *your*
>> filesystem, i.e. the mountpoint, and not the real root directory of your
>> system, aren't you?
>
> Well, no, actually it isn't, nor is he.  Maik is using an essentially
> unmodified fusexmp.c, which simply mirrors the root, so that '/' does
> indeed refer to the systems root filesystem.

He is? I thought he had modified it by now, because I remember him
complaining that he had files in his mountpoint with a freshly mounted
fs...



Best,


   -Nikolaus

-- 
  »Time flies like an arrow, fruit flies like a Banana. «

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
fuse-devel mailing list
fuse-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fuse-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic