/[hurd]/hurd/storeio/storeio.c
ViewVC logotype

Diff of /hurd/storeio/storeio.c

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

revision 1.24 by roland, Sat Jun 22 21:13:26 2002 UTC revision 1.25 by marco_g, Fri Jan 7 23:06:26 2005 UTC
# Line 299  trivfs_modify_stat (struct trivfs_protid Line 299  trivfs_modify_stat (struct trivfs_protid
299          st->st_blksize = store->block_size;          st->st_blksize = store->block_size;
300    
301        st->st_size = size;        st->st_size = size;
       st->st_blocks = size / 512;  
   
302        st->st_mode |= ((dev->inhibit_cache || store->block_size == 1)        st->st_mode |= ((dev->inhibit_cache || store->block_size == 1)
303                        ? S_IFCHR : S_IFBLK);                        ? S_IFCHR : S_IFBLK);
304      }      }
# Line 309  trivfs_modify_stat (struct trivfs_protid Line 307  trivfs_modify_stat (struct trivfs_protid
307      {      {
308        st->st_blksize = 0;        st->st_blksize = 0;
309        st->st_size = 0;        st->st_size = 0;
       st->st_blocks = 0;  
310    
311        st->st_mode |= dev->inhibit_cache ? S_IFCHR : S_IFBLK;        st->st_mode |= dev->inhibit_cache ? S_IFCHR : S_IFBLK;
312      }      }

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

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