From f57bf38f6c7c4371142b749dbd11b0fbb91632c3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 18 Nov 1999 06:23:41 +0000 Subject: 1999-11-14 Roland McGrath * dev.h (struct dev): New member `enforced'. * storeio.c (enforce_store): New variable. (options, parse_opt, trivfs_append_args): Grok new option --enforced/-e to set enforce_store. (check_open_hook): Set DEVICE->enforced from enforce_store. * io.c (trivfs_S_file_get_storage_info): If DEV->enforced is set and the store flags lack STORE_ENFORCED, then return STORAGE_OTHER. --- storeio/dev.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'storeio') diff --git a/storeio/dev.h b/storeio/dev.h index a4321399..d6e50102 100644 --- a/storeio/dev.h +++ b/storeio/dev.h @@ -40,6 +40,8 @@ struct dev indicates that there is no owner. */ pid_t owner; + int enforced; /* Nonzero iff --enforced flag was given. */ + /* Nonzero iff the --no-cache flag was given. If this is set, the remaining members are not used at all and don't need to be initialized or cleaned up. */ -- cgit v1.2.3