summaryrefslogtreecommitdiff
path: root/ufs/inode.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-09-19 23:13:07 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-09-19 23:13:07 +0000
commit13843f409047b9458c3ea2fb0a390773afcef5f7 (patch)
tree4ef00f100741b357851e3536492f8f1b7287b91f /ufs/inode.c
parent8f5be4556fc63e831b3ebcf6de5d3515f5b311ed (diff)
Formerly inode.c.~33~
Diffstat (limited to 'ufs/inode.c')
-rw-r--r--ufs/inode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ufs/inode.c b/ufs/inode.c
index f3f17086..72bdc313 100644
--- a/ufs/inode.c
+++ b/ufs/inode.c
@@ -19,6 +19,7 @@
#include "dinode.h"
#include "fs.h"
#include <string.h>
+#include <unistd.h>
#define INOHSZ 512
#if ((INOHSZ&(INOHSZ-1)) == 0)
@@ -173,13 +174,14 @@ read_disknode (struct node *np)
struct stat *st = &np->dn_stat;
struct dinode *di = &dinodes[np->dn->number];
error_t err;
+ volatile long long pid = getpid ();
err = diskfs_catch_exception ();
if (err)
return err;
st->st_fstype = FSTYPE_UFS;
- st->st_fsid = getpid ();
+ st->st_fsid = pid;
st->st_ino = np->dn->number;
st->st_gen = di->di_gen;
st->st_rdev = di->di_rdev;
@@ -306,7 +308,7 @@ create_symlink_hook (struct node *np, char *target)
if (!direct_symlink_extension)
return EINVAL;
- assert (!COMPAT_BSD42);
+ assert (compat_mode != COMPAT_BSD42);
if (len >= sblock->fs_maxsymlinklen)
return EINVAL;