diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-05 22:44:27 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-05 22:44:27 +0000 |
commit | 2f23663db96bace4a1e1766147caf38a8b8fae12 (patch) | |
tree | 679ba759bc7ed4af09cc09313d39153c454c002b /procfs | |
parent | 25f1eb33c611c4a269b88d487c1e51167707e611 (diff) | |
parent | cfffe88a07d4dbbba2c80032d78402c514490f8c (diff) |
Merge branch 'procfs-jkoenig-moved' into upstream-merged
Diffstat (limited to 'procfs')
-rw-r--r-- | procfs/netfs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/procfs/netfs.c b/procfs/netfs.c index a4d9f9c2..c139d11a 100644 --- a/procfs/netfs.c +++ b/procfs/netfs.c @@ -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 |