[linux-cifs-client] stat() shows st_size=0 for directory !?
Steven Scholz
steven.scholz at imc-berlin.de
Thu Jun 15 08:50:27 GMT 2006
Hi all,
why is st_size for a cifs mounted directory always 0?
It works ok for files.
~/Temp> mount
//10.0.2.9/gast on /mnt type cifs (rw,mand)
~/Temp> stat /mnt
File: ,,/mnt"
Size: 0 Blocks: 0 IO Block: 16384 Verzeichnis
Device: 14h/20d Inode: 2 Links: 14
Access: (0755/drwxr-xr-x) Uid: ( 1000/ gast) Gid: ( 100/ users)
Access: 2006-06-15 10:43:02.000000000 +0200
Modify: 2006-06-14 13:46:22.000000000 +0200
Change: 2006-06-14 13:46:22.000000000 +0200
Using stat() I get
st_dev = 20
st_ino = 2
st_mode = 40755
st_nlink = 14
st_uid = 1000
st_gid = 100
st_rdev = 0
st_size = 0
st_blksize = 16384
st_blocks = 0
st_atime = Thu Jun 15 10:43:02 2006
st_mtime = Wed Jun 14 13:46:22 2006
st_ctime = Wed Jun 14 13:46:22 2006
--
Steven
More information about the linux-cifs-client
mailing list