From d0f49ed70521d736b16389f1bf9345b75d0677ad Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sun, 9 Apr 1995 05:15:46 +0000 Subject: If trivfs_fsid is zero, set it to our process id, which should be a nice unique value. --- libtrivfs/file-statfs.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libtrivfs') 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 +#include 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; } -- cgit v1.2.3