diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-05 22:42:35 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-05 22:42:35 +0000 |
commit | aee5b3571175687aa2a255c23ba97406231c8d38 (patch) | |
tree | 9ebde370cfcf23b5cbadff7bbb3362d871788b0b /netfs.c | |
parent | c5a70074262bb8262e92f6e9cda1c7610e4f1d2c (diff) | |
parent | c87b1d3627fd4c64877e67e7cdd67980067a03f6 (diff) |
Merge remote-tracking branch 'procfs/master' into procfs-jkoenig
Diffstat (limited to 'netfs.c')
-rw-r--r-- | netfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -23,6 +23,8 @@ #include <mach/vm_param.h> #include <dirent.h> #include <fcntl.h> +#include <sys/statvfs.h> +#include <unistd.h> #include "procfs.h" #define PROCFS_SERVER_NAME "procfs" @@ -347,7 +349,10 @@ error_t netfs_attempt_set_size (struct iouser *cred, struct node *np, error_t netfs_attempt_statfs (struct iouser *cred, struct node *np, fsys_statfsbuf_t *st) { - return ENOSYS; + memset (st, 0, sizeof *st); + st->f_type = FSTYPE_PROC; + st->f_fsid = getpid (); + return 0; } /* The user must define this function. This should sync the locked |