about summary refs log tree commit diff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-17T13·15+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-17T13·15+0100
commit00d30496ca32145f55891364ddcf3d4af87f05d5 (patch)
tree47ac2f377c592a0f891936fe3d3c09661a0a378f /src/libstore/local-store.cc
parente81d38c02b267eea93a91de3e8a00b185355d681 (diff)
Heuristically detect if a build may have failed due to a full disk
This will allow Hydra to detect that a build should not be marked as
"permanently failed", allowing it to be retried later.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 4c86538837a8..aca98412ae16 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -456,8 +456,8 @@ void LocalStore::makeStoreWritable()
     if (getuid() != 0) return;
     /* Check if /nix/store is on a read-only mount. */
     struct statvfs stat;
-    if (statvfs(settings.nixStore.c_str(), &stat) !=0)
-        throw SysError("Getting info of nix store mountpoint");
+    if (statvfs(settings.nixStore.c_str(), &stat) != 0)
+        throw SysError("getting info about the Nix store mount point");
 
     if (stat.f_flag & ST_RDONLY) {
         if (unshare(CLONE_NEWNS) == -1)