diff options
author | Marco Gerards <marco@gnu.org> | 2005-01-07 23:06:26 +0000 |
---|---|---|
committer | Marco Gerards <marco@gnu.org> | 2005-01-07 23:06:26 +0000 |
commit | 958c7b473969994407f2a7c11700a34f976920b6 (patch) | |
tree | f54d949b479ac34d4046b56542fbf5cecd61e714 /storeio | |
parent | 1ee61be36186d9b3351ccabbab1b73fd31bd4bf3 (diff) |
2005-01-08 Marco Gerards <metgerards@student.han.nl>
* storeio.c (trivfs_modify_stat): Don't initialize st_blocks.
Diffstat (limited to 'storeio')
-rw-r--r-- | storeio/ChangeLog | 4 | ||||
-rw-r--r-- | storeio/storeio.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/storeio/ChangeLog b/storeio/ChangeLog index c5d0e581..75374a1e 100644 --- a/storeio/ChangeLog +++ b/storeio/ChangeLog @@ -1,3 +1,7 @@ +2005-01-08 Marco Gerards <metgerards@student.han.nl> + + * storeio.c (trivfs_modify_stat): Don't initialize st_blocks. + 2002-06-22 Roland McGrath <roland@frob.com> * storeio.c (parse_opt): Fix fencepost error in -n arg parsing. diff --git a/storeio/storeio.c b/storeio/storeio.c index a6470fcb..a88c8e43 100644 --- a/storeio/storeio.c +++ b/storeio/storeio.c @@ -299,8 +299,6 @@ trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st) st->st_blksize = store->block_size; st->st_size = size; - st->st_blocks = size / 512; - st->st_mode |= ((dev->inhibit_cache || store->block_size == 1) ? S_IFCHR : S_IFBLK); } @@ -309,7 +307,6 @@ trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st) { st->st_blksize = 0; st->st_size = 0; - st->st_blocks = 0; st->st_mode |= dev->inhibit_cache ? S_IFCHR : S_IFBLK; } |