On Mon, 20 Sep 2010 09:29:38 +0200 Stef Bon <stefbon@xxxxxxxxx> wrote: > 2010/9/20 Jeff Layton <jlayton@xxxxxxxxx>: > > On Sun, 19 Sep 2010 21:28:41 +0200 > > Stef Bon <stefbon@xxxxxxxxx> wrote: > > > >> Hello, > >> > >> > >> It's causing some unwanted behaviour. > >> How can I change that, or is this not changeable? > >> Stef > > > > I think it's just a matter of setting the inode->i_size on the > > directory. I *think* that when you do a QPathInfo call to a directory > > via cifs the size comes back 0. Setting this to something else probably > > means an extra call to the server to get the "real" size (whatever that > > means). The question is, what should this be set to? > > > > -- > > Jeff Layton <jlayton@xxxxxxxxx> > > > > Yes that's a good question. But a share mounted with cifs should > behave like it is's just a local harddrive partition right? So these > values are obligatory... > No, not necessarily. > In my construction - so I'm speaking only for my own here - > it's also set the size (and the blocks) in the FUSE fs. Remember, I'm > using the FUSE fs fuse-workspace > as the one which is used, and the various mounts to resources like smb > shares (mounted with cifs of course, managed with autofs) are the > underlying backend. > > My FUSE can correct things, like this. > > I wonder, it can correct things, but is it also a must? > My fuse fs takes these values just from the underlying fs, and this > can result in > a size of directories of 4096 when the underlying fs is a mounted > partition (of for example an USB disk) and zero > when it's a cifs mounted smb share. Is it a bad thing that these > values differ in the same fs (in my case thus fuse-workspace)?? > > Maybe you know this, else I'll try at the fsdevel list. > It really comes down to this question: What is the size on a directory supposed to signify? It's certainly possible for us to fake up a size and stuff it into the i_size field, but what should go there? Why 4096 and not 4097 or 4095? What if the directory is bigger or smaller than a page? Also, what sort of application is having problems with a directory of 0 size? Asking this on fsdevel would probably be a good idea. -- Jeff Layton <jlayton@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html