From 958c7b473969994407f2a7c11700a34f976920b6 Mon Sep 17 00:00:00 2001 From: Marco Gerards Date: Fri, 7 Jan 2005 23:06:26 +0000 Subject: 2005-01-08 Marco Gerards * storeio.c (trivfs_modify_stat): Don't initialize st_blocks. --- storeio/ChangeLog | 4 ++++ 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 + + * storeio.c (trivfs_modify_stat): Don't initialize st_blocks. + 2002-06-22 Roland McGrath * 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; } -- cgit v1.2.3