diff options
Diffstat (limited to 'fs/mount.c')
| -rw-r--r-- | fs/mount.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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); } |
