summaryrefslogtreecommitdiff
path: root/storeio
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-02-01 03:49:03 +0000
committerRoland McGrath <roland@gnu.org>1999-02-01 03:49:03 +0000
commit3794e61f5825e45839cb444d4ea94dfe3dca6b32 (patch)
treed1ccd2884ad0dd41b445ae356b2a3c38e58e4234 /storeio
parent0458f1b8f5348c55785434a5ea2f8f8c1217e7db (diff)
1999-01-31 Roland McGrath <roland@baalperazim.frob.com>
* storeio.c (trivfs_modify_stat): Return S_IFCHR iff inhibit_cache set, otherwsie S_IFBLK. For a block-addressed device, S_IFCHR means "must do whole-block i/o".
Diffstat (limited to 'storeio')
-rw-r--r--storeio/storeio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storeio/storeio.c b/storeio/storeio.c
index 3990387c..0dfa74a2 100644
--- a/storeio/storeio.c
+++ b/storeio/storeio.c
@@ -251,7 +251,7 @@ trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st)
}
st->st_mode &= ~S_IFMT;
- st->st_mode |= S_IFCHR;
+ st->st_mode |= inhibit_cache ? S_IFCHR : S_IFBLK;
st->st_rdev = rdev;
if (readonly)
st->st_mode &= ~(S_IWUSR | S_IWGRP | S_IWOTH);