<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - ConditionNeedsUpdate should not match read-only fs"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81169#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - ConditionNeedsUpdate should not match read-only fs"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81169">bug 81169</a>
from <span class="vcard"><a class="email" href="mailto:enrico.scholz@sigma-chemnitz.de" title="Enrico Scholz <enrico.scholz@sigma-chemnitz.de>"> <span class="fn">Enrico Scholz</span></a>
</span></b>
<pre>I see, code contains such a check already. Unfortunately, checking for
ST_RDONLY (--> 0x01) does not work on NFS filesystems. Check for 'access(...,
W_OK)' might be more appropriate
# strace stat -f /etc
statfs64("/etc", 88, ... f_flags=4128})
# strace touch /etc/x
open("/etc/x", O_RDWR|O_CREAT|O_LARGEFILE, 0666) = -1 EROFS (Read-only file
system)
# systemctl status ldconfig
��� ldconfig.service - Rebuild Dynamic Linker Cache
Loaded: loaded (/lib/systemd/system/ldconfig.service; static)
Active: failed (Result: exit-code) since Tue 2014-06-10 15:35:20 UTC; 40min
ago
Docs: man:ldconfig(8)
Process: 566 ExecStart=/sbin/ldconfig -X (code=exited, status=1/FAILURE)
Main PID: 566 (code=exited, status=1/FAILURE)
ldconfig[566]: /sbin/ldconfig: Can't create temporary cache file
/etc/ld.so.cache~: Read-only file system
# systemctl --version
systemd 215</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>