From 3794e61f5825e45839cb444d4ea94dfe3dca6b32 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 1 Feb 1999 03:49:03 +0000 Subject: 1999-01-31 Roland McGrath * 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". --- storeio/storeio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3