aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_util.c
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2013-02-26 21:31:18 -0600
committerPeter Seebach <peter.seebach@windriver.com>2013-02-26 21:32:50 -0600
commit0db033145b47dfa76f57316eb9a03b157f3a0631 (patch)
tree0164f69aa0ad7af1fdd0b57709e4eb4c76153b76 /pseudo_util.c
parentbe1131e2ee2178bcc50ba04916fea527059f6aa0 (diff)
downloadpseudo-0db033145b47dfa76f57316eb9a03b157f3a0631.tar.gz
pseudo-0db033145b47dfa76f57316eb9a03b157f3a0631.tar.bz2
pseudo-0db033145b47dfa76f57316eb9a03b157f3a0631.zip
PSEUDO_ALLOW_FSYNC: Allow fsync()pseudo-1.5PSEUDO_1_5
Some filesystems have buggy semantics where stat(2) will return incorrect sizes for files for a while after some changes, sometimes, unless they've been fsync'd. We still want to disable fsync most of the time, but enabling it for specific programs can be useful. Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Diffstat (limited to 'pseudo_util.c')
-rw-r--r--pseudo_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pseudo_util.c b/pseudo_util.c
index ca2f0a4..8d0969e 100644
--- a/pseudo_util.c
+++ b/pseudo_util.c
@@ -65,6 +65,7 @@ static struct pseudo_variables pseudo_env[] = {
{ "PSEUDO_NOSYMLINKEXP", 19, NULL },
{ "PSEUDO_DISABLED", 15, NULL },
{ "PSEUDO_UNLOAD", 13, NULL },
+ { "PSEUDO_ALLOW_FSYNC", 18, NULL },
{ NULL, 0, NULL } /* Magic terminator */
};