aboutsummaryrefslogtreecommitdiffstats
path: root/ports/darwin
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2015-08-20 17:28:04 -0500
committerPeter Seebach <peter.seebach@windriver.com>2015-08-21 11:12:55 -0500
commit0deb5e20ad9bea4426e67cc5fe86acefdd715c09 (patch)
tree9d9c83a3e421bfdae4357a2206608b91103670a4 /ports/darwin
parent79cd74c8643eeaef52e9f78135f60a9652bcf65c (diff)
downloadpseudo-0deb5e20ad9bea4426e67cc5fe86acefdd715c09.tar.gz
pseudo-0deb5e20ad9bea4426e67cc5fe86acefdd715c09.tar.bz2
pseudo-0deb5e20ad9bea4426e67cc5fe86acefdd715c09.zip
New option: Use extended attributes to store db values.
This is a moderately experimental feature which stores values in an extended attribute called 'user.pseudo_data' instead of in the database. Still missing: Database<->filesystem synchronization for this. For at least some workloads, this can dramatically improve performance. Signed-off-by: Peter Seebach <peter.seebach@windriver.com>
Diffstat (limited to 'ports/darwin')
-rw-r--r--ports/darwin/guts/stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/darwin/guts/stat.c b/ports/darwin/guts/stat.c
index 1e1cf67..8a0742c 100644
--- a/ports/darwin/guts/stat.c
+++ b/ports/darwin/guts/stat.c
@@ -20,7 +20,7 @@
* don't need to check for a symlink on this end
*/
msg = pseudo_client_op(OP_STAT, 0, -1, AT_FDCWD, path, buf);
- if (msg) {
+ if (msg && msg->result == RESULT_SUCCEED) {
pseudo_stat_msg(buf, msg);
}