patch-1.3.64 linux/fs/super.c
Next file: linux/fs/vfat/namei.c
Previous file: linux/fs/proc/root.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Thu Feb 15 14:37:11 1996
- Orig file:
v1.3.63/linux/fs/super.c
- Orig date:
Sun Jan 14 16:30:14 1996
diff -u --recursive --new-file v1.3.63/linux/fs/super.c linux/fs/super.c
@@ -262,6 +262,23 @@
return retval;
}
+int get_filesystem_info( char *buf )
+{
+ struct vfsmount *tmp = vfsmntlist;
+ int len = 0;
+
+ while ( tmp && len < PAGE_SIZE - 80 )
+ {
+ len += sprintf( buf + len, "%s %s %s %s",
+ tmp->mnt_devname, tmp->mnt_dirname, tmp->mnt_sb->s_type->name,
+ tmp->mnt_flags & MS_RDONLY ? "ro" : "rw" );
+ len += sprintf( buf + len, " 0 0\n" );
+ tmp = tmp->mnt_next;
+ }
+
+ return len;
+}
+
int get_filesystem_list(char * buf)
{
int len = 0;
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