diff options
author | Roland McGrath <roland@gnu.org> | 2001-11-21 22:08:48 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-11-21 22:08:48 +0000 |
commit | e1db96867daa89549aa2961031f0549a68432e09 (patch) | |
tree | 130e724a5ef247545b468d61117bd2554603b1bc /ufs | |
parent | eb1d3a57913c264e31cbef4b2eec582d3109cc55 (diff) |
2001-11-21 Roland McGrath <roland@frob.com>
* inode.c (read_disknode): Just always call getpid for the fsid value.
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/inode.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ufs/inode.c b/ufs/inode.c index 2098211f..a258ea13 100644 --- a/ufs/inode.c +++ b/ufs/inode.c @@ -212,7 +212,6 @@ diskfs_new_hardrefs (struct node *np) static error_t read_disknode (struct node *np) { - static int fsid, fsidset; struct stat *st = &np->dn_stat; struct dinode *di = dino (np->dn->number); error_t err; @@ -221,14 +220,8 @@ read_disknode (struct node *np) if (err) return err; - if (! fsidset) - { - fsid = getpid (); - fsidset = 1; - } - st->st_fstype = FSTYPE_UFS; - st->st_fsid = fsid; + st->st_fsid = getpid (); /* This call is very cheap. */ st->st_ino = np->dn->number; st->st_gen = read_disk_entry (di->di_gen); st->st_rdev = read_disk_entry(di->di_rdev); |