diff options
| author | Miguel <m.i@gmx.at> | 2018-09-28 00:29:02 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-28 00:29:02 +0200 |
| commit | 9a29d452d03a63f39a80c0640b7747d8508568e2 (patch) | |
| tree | 05adc15fac805f019af21107a7e3d84135f483f9 /fs/mount.c | |
| parent | b3ec24b054fe36c7368048c3f1d0c46ed8fbb55e (diff) | |
moved mouse and kb, fixed mouse a bit
Diffstat (limited to 'fs/mount.c')
| -rw-r--r-- | fs/mount.c | 16 |
1 files changed, 3 insertions, 13 deletions
@@ -6,7 +6,7 @@ #include "log.h" #include "lib/string/string.h" -// temporary + #include "fd.h" static mount mounts[MAX_MOUNTS]; @@ -17,7 +17,7 @@ char *mount_type_to_str(uint32_t t) switch(t) { case MOUNT_TYPE_EXT2: return "EXT2"; - case MOUNT_TYPE_PIPES: return "PIPES"; +// case MOUNT_TYPE_PIPES: return "PIPES"; case MOUNT_TYPE_SYS: return "SYSFS"; } return "UNKNOWN"; @@ -30,22 +30,12 @@ void mount_add(mount mnt) klog("Mounted %s at %s",mount_type_to_str(mnt.type),mnt.path); } -void mount_dump() -{ - for(int i=0;i<mounts_count;i++) - { - mount *m=&mounts[i]; - klog("%s mounted at: %s ",mount_type_to_str(m->type),m->path); - } -} - 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); + f(r,"%s at %s",mount_type_to_str(m->type),m->path); } } |
