summaryrefslogtreecommitdiff
path: root/fs/mount.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-28 00:29:02 +0200
committerMiguel <m.i@gmx.at>2018-09-28 00:29:02 +0200
commit9a29d452d03a63f39a80c0640b7747d8508568e2 (patch)
tree05adc15fac805f019af21107a7e3d84135f483f9 /fs/mount.c
parentb3ec24b054fe36c7368048c3f1d0c46ed8fbb55e (diff)
moved mouse and kb, fixed mouse a bit
Diffstat (limited to 'fs/mount.c')
-rw-r--r--fs/mount.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/fs/mount.c b/fs/mount.c
index 92f9b8a..62cfe9f 100644
--- a/fs/mount.c
+++ b/fs/mount.c
@@ -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);
}
}