From: Sven U. <utc...@in...> - 2009-06-05 20:40:42
|
>> [hasgksssven] /mnt/dcfs/reco # getconf NAME_MAX /tmp/ >> 255 >> [hasgksssven] /mnt/dcfs/reco # getconf NAME_MAX . >> getconf: pathconf: .: Value too large for defined data type > > Try valid data in stat(v)fs. Well, I thought I did (except for stbuf->f_fsid = 10815, that is :-) Ok, running strace on getconf I see (for my FUSE FS): statfs("/mnt/dcfs/.", 0xbf819960) = -1 EOVERFLOW (Value too large for defined data type) (contrast this with statfs("/scratch/utcke/SUFS/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=52192014, f_bfree=9202139, f_bavail=6508140, f_files=53903360, f_ffree=53827351, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0 for another non-fuse FS) So what's going on there? I'm using #define FUSE_USE_VERSION 25 int dcfs_statfs(const char *path, struct statvfs *stbuf) since /usr/include/fuse/fuse.h said: * Replaced 'struct statfs' parameter with 'struct statvfs' in * version 2.5 */ int (*statfs) (const char *, struct statvfs *); Wierd. BTW, this is Fuse 2.6.3, which comes with my particular version of REL... then again, changing struct statvfs to struct statfs doesn't help either (but does give the wrong results in df, so I guess statvfs is fine, as I then get: hasgksssven>/.../utcke/src/SUFS% df -h /mnt/dcfs Filesystem Size Used Avail Use% Mounted on dcfs-main 7.2T 7.2T 25G 100% /mnt/dcfs Clueless Sven -- __ _ _ __ __ __ / _` || ' \ \ \ / \__, ||_|_|_|/_\_\ http://kogs-www.informatik.uni-hamburg.de/~utcke/Private/ |___/ Key fingerprint = 6F F8 55 1C F9 E3 A8 F7 09 DF F7 2C 25 0C 54 53 |