[Nix-dev] Re: Re: Using "chattr -R +i" to ensure /nix/store entry immutability.

Michael Raskin 7c6f434c at mail.ru
Sun Aug 15 10:45:10 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/15/2010 12:31 PM, Yury G. Kudryashov wrote:
>> I do not see these as mutually exclusive. I guess both can give some
>> information (some programs will probably fail when unable to write to
>> $PREFIX).
> I'm afraid that kernel tries to write somewhere in $linux/, and I don't know 
> whether it will fail somehow with this option.

At least mtimes are all in 1970, except for two symlinks. Looks like Nix
just fails to change time on symlink and not on its target.

If the chattr is optional, those more interested in hash tracking are
not impeded in doing their part..
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMZ6kWAAoJEE6tnN0aWvw3b3YH/0LIHazHevJIWyrniweAfm2K
HZ4JkzSJ0jmbxxc9XZgdAo+uVWHGdxMjqdPk9YlqA6uAakCBMPsYhnUUfrdjA5s/
MqyKZhyo8MVXy0rC9g55Ql20rJwyNIAricUQZfGs1pgNz9pU+DwFAQHWrum3HoDN
vFsDS8wvSs8BjIewvQ5dJyPuSpKaj18GKratwQEyKPemn3OwhvTJhQWFA+0svO4Z
xTeRL5f5GVmxSzT/SQKUPvpGy7tYYi2mwE+30jjoYNbed/NpKbVXQBUyXxILeRrH
Xi+z20HSO2WWCBU9B3Xw+KDWgbAAreE0PE68hVVFYzeP+QXVIfojVVh08ybRnhI=
=gkv/
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list