Re: Minimizing disk usage for kernel development.

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Fri Feb 25 2000 - 21:23:45 EST


William Stearns <wstearns@pobox.com> said:

[...]

> This came from a Kernel-FAQ, although it doesn't seem to be in the
> current FAQ. Anyways:

[...]

> <quote>
> Assuming that your editor does the same thing, too (moving original files
> to backup files before writing out changed ones) you can freely edit
> within the hardlinked tree.

Editors are careful to place the modified file into the same inode as the
original. Only exception I found when I did a extensive check a while back
was jed, and that is broken IMHO. Gave me quite a headache on Solaris,
where the /etc/rc?d/* files are _hard_ links into /etc/init: Using vi(1) or
emacs(1) allowed correct fixing of the files, jed(1) doesn't... the hard
links elsewhere point to the backup afterwards!

Better use symlinks, lndir(1x) is for this.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:14 EST