198 |
read_node (struct node *np) |
read_node (struct node *np) |
199 |
{ |
{ |
200 |
error_t err; |
error_t err; |
|
static int fsid, fsidset; |
|
201 |
struct stat *st = &np->dn_stat; |
struct stat *st = &np->dn_stat; |
202 |
struct disknode *dn = np->dn; |
struct disknode *dn = np->dn; |
203 |
struct ext2_inode *di = dino (np->cache_id); |
struct ext2_inode *di = dino (np->cache_id); |
207 |
if (err) |
if (err) |
208 |
return err; |
return err; |
209 |
|
|
|
if (!fsidset) |
|
|
{ |
|
|
fsid = getpid (); |
|
|
fsidset = 1; |
|
|
} |
|
|
|
|
210 |
st->st_fstype = FSTYPE_EXT2FS; |
st->st_fstype = FSTYPE_EXT2FS; |
211 |
st->st_fsid = fsid; |
st->st_fsid = getpid (); /* This call is very cheap. */ |
212 |
st->st_ino = np->cache_id; |
st->st_ino = np->cache_id; |
213 |
st->st_blksize = vm_page_size * 2; |
st->st_blksize = vm_page_size * 2; |
214 |
|
|