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

List:       fuse-devel
Subject:    Re: [fuse-devel] mode argument
From:       Miklos Szeredi <miklos () szeredi ! hu>
Date:       2007-07-15 12:39:08
Message-ID: E1IA3NU-0002so-00 () dorka ! pomaz ! szeredi ! hu
[Download RAW message or body]

> There is an odditiy in the @mode arguments. Let's see step by step.
> 
> Any object that is non-file, non-directory is created with a 
> filesystem's ->mknod() function, if such exists. If it does not exist, 
> the request is rejected.
> Following cases remain:
> Files are always created with ->create().
> Directories are always created with ->mkdir().
> 
> create() gets passed a mode that has the format [S_IFREG] encoded, 
> while mkdir() gets a mode that does not have S_ISDIR.

Yes, it's inconsistent, but it shouldn't really hurt.

OK, probably removing S_IFREG from create() wouldn't hurt either, but
who knows...  Better safe than sorry I say ;)

Miklos

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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