patch-1.3.69 linux/fs/sysv/inode.c
Next file: linux/fs/umsdos/check.c
Previous file: linux/fs/sysv/file.c
Back to the patch index
Back to the overall index
- Lines: 23
- Date:
Sun Feb 25 11:17:59 1996
- Orig file:
v1.3.68/linux/fs/sysv/inode.c
- Orig date:
Tue Jan 23 21:15:51 1996
diff -u --recursive --new-file v1.3.68/linux/fs/sysv/inode.c linux/fs/sysv/inode.c
@@ -536,14 +536,15 @@
{
struct statfs tmp;
- tmp.f_type = sb->s_magic;
- tmp.f_bsize = sb->sv_block_size;
- tmp.f_blocks = sb->sv_ndatazones;
- tmp.f_bfree = sysv_count_free_blocks(sb);
- tmp.f_bavail = tmp.f_bfree;
- tmp.f_files = sb->sv_ninodes;
- tmp.f_ffree = sysv_count_free_inodes(sb);
+ tmp.f_type = sb->s_magic; /* type of filesystem */
+ tmp.f_bsize = sb->sv_block_size; /* block size */
+ tmp.f_blocks = sb->sv_ndatazones; /* total data blocks in file system */
+ tmp.f_bfree = sysv_count_free_blocks(sb); /* free blocks in fs */
+ tmp.f_bavail = tmp.f_bfree; /* free blocks available to non-superuser */
+ tmp.f_files = sb->sv_ninodes; /* total file nodes in file system */
+ tmp.f_ffree = sysv_count_free_inodes(sb); /* free file nodes in fs */
tmp.f_namelen = SYSV_NAMELEN;
+ /* Don't know what value to put in tmp.f_fsid */ /* file system id */
memcpy_tofs(buf, &tmp, bufsiz);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this