summaryrefslogtreecommitdiffstats
path: root/utils/exportfs/exportfs.c
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2003-07-17 23:41:19 +0000
committerneilbrown <neilbrown>2003-07-17 23:41:19 +0000
commitbce6f6871f481087890674497b4b2154dc4825fc (patch)
tree51858d7b5ef07ed1244d29856698418756f4b8c3 /utils/exportfs/exportfs.c
parent3094278cd11c3c18d5426210e09e3c903a7a41a3 (diff)
downloadnfs-utils-bce6f6871f481087890674497b4b2154dc4825fc.tar.gz
nfs-utils-bce6f6871f481087890674497b4b2154dc4825fc.tar.xz
nfs-utils-bce6f6871f481087890674497b4b2154dc4825fc.zip
Release 1.0.5
Diffstat (limited to 'utils/exportfs/exportfs.c')
-rw-r--r--utils/exportfs/exportfs.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
index fe0f6ba..cbb0aa9 100644
--- a/utils/exportfs/exportfs.c
+++ b/utils/exportfs/exportfs.c
@@ -91,16 +91,22 @@ main(int argc, char **argv)
fprintf(stderr, "exportfs: -r and -u are incompatible.\n");
return 1;
}
+ new_cache = check_new_cache();
if (optind == argc && ! f_all) {
if (force_flush) {
- cache_flush(1);
+ if (new_cache)
+ cache_flush(1);
+ else {
+ fprintf(stderr, "exportfs: -f: only available with new cache controls: mount /proc/fs/nfs first\n");
+ exit(1);
+ }
+ return 0;
} else {
xtab_export_read();
dump(f_verbose);
return 0;
}
}
- new_cache = check_new_cache();
if (f_export && ! f_ignore)
export_read(_PATH_EXPORTS);