summaryrefslogtreecommitdiff
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
commit87f910ede730e49d812c16007cf70a07ea50acd7 (patch)
treee9fbfde964c8551ad91ebdbf560c30ec2facd401
parent675d640c5697271321909ee0833ee9aae35d1737 (diff)
Formerly inode.c.~33~
-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;