summaryrefslogtreecommitdiff
path: root/fs/mount.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-18 03:03:28 +0200
committerMiguel <m.i@gmx.at>2018-09-18 03:03:28 +0200
commit2d91384197847a7e8fe2c3f548918a8277d3086d (patch)
tree7c93404e290a0ffbdaf9a8a94766d7bd0fd6e4f2 /fs/mount.c
parent06e6e427c76bdb88a7f72dd04411d95a4bda3270 (diff)
sysfs, errno, improve foolshell, etc
Diffstat (limited to 'fs/mount.c')
-rw-r--r--fs/mount.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/fs/mount.c b/fs/mount.c
index a7cd949..009647a 100644
--- a/fs/mount.c
+++ b/fs/mount.c
@@ -18,7 +18,7 @@ char *mount_type_to_str(uint32_t t)
{
case MOUNT_TYPE_EXT2: return "EXT2";
case MOUNT_TYPE_PIPES: return "PIPES";
- case MOUNT_TYPE_SYS: return "SYS";
+ case MOUNT_TYPE_SYS: return "SYSFS";
}
return "UNKNOWN";
}
@@ -39,6 +39,16 @@ void mount_dump()
}
}
+void mount_sysfs(ringbuffer *r, void (*f)(ringbuffer *r,char *fmt, ...))
+{
+ f(r,"mounts:");
+ for(int i=0;i<mounts_count;i++)
+ {
+ mount *m=&mounts[i];
+ f(r,"%s mounted at: %s ",mount_type_to_str(m->type),m->path);
+ }
+}
+
static uint32_t check_match(char *p1, char *p2)
{
uint32_t c=0;
@@ -84,7 +94,6 @@ fd mount_file_open(char *path)
{
mount m;
char *p=get_mount_for_path(path,&m);
- klog("%s in %s",p,m.path);
return m.mount_file_open(&m,p);
}