/[hurd]/hurd/ext2fs/inode.c
ViewVC logotype

Diff of /hurd/ext2fs/inode.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.58 by roland, Fri Aug 17 00:30:08 2001 UTC revision 1.59 by roland, Wed Nov 21 22:08:55 2001 UTC
# Line 198  static error_t Line 198  static error_t
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);
# Line 208  read_node (struct node *np) Line 207  read_node (struct node *np)
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    

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26