From 87f910ede730e49d812c16007cf70a07ea50acd7 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 19 Sep 1994 23:13:07 +0000 Subject: Formerly inode.c.~33~ --- ufs/inode.c | 6 ++++-- 1 file 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 +#include #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; -- cgit v1.2.3