diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-05 22:45:00 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-01-05 22:45:13 +0000 |
commit | 4c9eee6d0297a2889f2e6c4856a421f8a7de5bf7 (patch) | |
tree | c6e4263907af681d8d8d04724945491e8f272934 | |
parent | 386c193824117a45277b46288f3676c5cf5bbac1 (diff) | |
parent | 2f23663db96bace4a1e1766147caf38a8b8fae12 (diff) |
Merge branch 'upstream-merged'
-rw-r--r-- | debian/changelog | 2 | ||||
-rw-r--r-- | procfs/netfs.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index ca51e306..40f57ba6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hurd (20121127-1) unstable; urgency=low +hurd (20130105-1) unstable; urgency=low [ Samuel Thibault ] * New ustream snapshot 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 |