forked from lix-project/lix
b9c2b4d5b4
Using the immutable bit is problematic, especially in conjunction with store optimisation. For instance, if the garbage collector deletes a file, it has to clear its immutable bit, but if the file has additional hard links, we can't set the bit afterwards because we don't know the remaining paths. So now that we support having the entire Nix store as a read-only mount, we may as well drop the immutable bit. Unfortunately, we have to keep the code to clear the immutable bit for backwards compatibility.
11 lines
127 B
C++
11 lines
127 B
C++
#pragma once
|
|
|
|
#include <types.hh>
|
|
|
|
namespace nix {
|
|
|
|
/* Make the given path mutable. */
|
|
void makeMutable(const Path & path);
|
|
|
|
}
|