diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-01-03 12:59:23 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-01-03 12:59:23 +0100 |
commit | def5160b614a59a0aa96fe2252e3daa00146e061 (patch) | |
tree | 3ec0b2ade78dfbf00399246fea86d3706ce0db93 /src/libutil/util.cc | |
parent | 0a4e90395c3286a246b816575351b9f2016976ba (diff) | |
download | guix-def5160b614a59a0aa96fe2252e3daa00146e061.tar.gz |
Clear any immutable bits in the Nix store
Doing this once makes subsequent operations like garbage collecting more efficient since we don't have to call makeMutable() first.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 1308eac312..7874329c76 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -13,7 +13,6 @@ #include <limits.h> #include "util.hh" -#include "immutable.hh" extern char * * environ; @@ -305,8 +304,6 @@ static void _deletePath(const Path & path, unsigned long long & bytesFreed) struct stat st = lstat(path); - if (S_ISDIR(st.st_mode) || S_ISREG(st.st_mode)) makeMutable(path); - if (!S_ISDIR(st.st_mode) && st.st_nlink == 1) bytesFreed += st.st_blocks * 512; |