diff options
Diffstat (limited to 'libtrivfs/file-statfs.c')
-rw-r--r-- | libtrivfs/file-statfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libtrivfs/file-statfs.c b/libtrivfs/file-statfs.c index 6385b7f7..6d86748b 100644 --- a/libtrivfs/file-statfs.c +++ b/libtrivfs/file-statfs.c @@ -18,13 +18,18 @@ #include "priv.h" #include "fs_S.h" #include <string.h> +#include <unistd.h> kern_return_t trivfs_S_file_statfs (struct trivfs_protid *cred, struct fsys_statfsbuf *stb) { + if (!trivfs_fsid) + trivfs_fsid = getpid(); + bzero (stb, sizeof (struct fsys_statfsbuf)); stb->fsys_stb_type = trivfs_fstype; stb->fsys_stb_fsid = trivfs_fsid; + return 0; } |