* Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels)
@ 2007-07-16 14:22 Al Boldi
2007-07-16 16:44 ` Satyam Sharma
2007-07-17 11:43 ` Geert Uytterhoeven
0 siblings, 2 replies; 6+ messages in thread
From: Al Boldi @ 2007-07-16 14:22 UTC (permalink / raw)
To: linux-fsdevel; +Cc: linux-kernel
Satyam Sharma wrote:
> Or just "cp -al" to create multiple trees at (almost) no disk cost
> that won't interfere with each other in any way, and makes the
> development process / generating patchsets trifle easier as well ...
That would be correct if hardlinks would actually do a CoW on modify, instead
of misleading the user into thinking he is modifying an independent file.
Moral of the story: try to avoid hardlinks as much as possible!
Thanks!
--
Al
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels)
2007-07-16 14:22 Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels) Al Boldi
@ 2007-07-16 16:44 ` Satyam Sharma
2007-07-16 16:53 ` Jörn Engel
2007-07-17 11:43 ` Geert Uytterhoeven
1 sibling, 1 reply; 6+ messages in thread
From: Satyam Sharma @ 2007-07-16 16:44 UTC (permalink / raw)
To: Al Boldi; +Cc: linux-fsdevel, linux-kernel
On 7/16/07, Al Boldi <a1426z@gawab.com> wrote:
> Satyam Sharma wrote:
> > Or just "cp -al" to create multiple trees at (almost) no disk cost
> > that won't interfere with each other in any way, and makes the
> > development process / generating patchsets trifle easier as well ...
>
> That would be correct if hardlinks would actually do a CoW on modify, instead
> of misleading the user into thinking he is modifying an independent file.
"patch" already handles this correctly ... and backupcopy=auto,breakhardlink
in vim (and something similar in other editors I presume)
Satyam
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels)
2007-07-16 16:44 ` Satyam Sharma
@ 2007-07-16 16:53 ` Jörn Engel
2007-07-16 17:23 ` Al Boldi
0 siblings, 1 reply; 6+ messages in thread
From: Jörn Engel @ 2007-07-16 16:53 UTC (permalink / raw)
To: Satyam Sharma; +Cc: Al Boldi, linux-fsdevel, linux-kernel
On Mon, 16 July 2007 22:14:41 +0530, Satyam Sharma wrote:
> On 7/16/07, Al Boldi <a1426z@gawab.com> wrote:
> >Satyam Sharma wrote:
> >> Or just "cp -al" to create multiple trees at (almost) no disk cost
> >> that won't interfere with each other in any way, and makes the
> >> development process / generating patchsets trifle easier as well ...
> >
> >That would be correct if hardlinks would actually do a CoW on modify,
> >instead
> >of misleading the user into thinking he is modifying an independent file.
>
> "patch" already handles this correctly ... and backupcopy=auto,breakhardlink
> in vim (and something similar in other editors I presume)
Yet even a single program failing to break the link will leave you with
a mess to sort out. The only place that can ensure to always break the
link is the kernel. Which is why I wrote the cowlink patches some years
back.
The still need a lot of love to be merge-ready. But I do use them on a
daily basis.
Jörn
--
Joern's library part 2:
http://www.art.net/~hopkins/Don/unix-haters/tirix/embarrassing-memo.html
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels)
2007-07-16 16:53 ` Jörn Engel
@ 2007-07-16 17:23 ` Al Boldi
2007-07-16 21:10 ` Jörn Engel
0 siblings, 1 reply; 6+ messages in thread
From: Al Boldi @ 2007-07-16 17:23 UTC (permalink / raw)
To: Jörn Engel, Satyam Sharma; +Cc: linux-fsdevel, linux-kernel
Jörn Engel wrote:
> On Mon, 16 July 2007 22:14:41 +0530, Satyam Sharma wrote:
> > On 7/16/07, Al Boldi <a1426z@gawab.com> wrote:
> > >Satyam Sharma wrote:
> > >> Or just "cp -al" to create multiple trees at (almost) no disk cost
> > >> that won't interfere with each other in any way, and makes the
> > >> development process / generating patchsets trifle easier as well ...
> > >
> > >That would be correct if hardlinks would actually do a CoW on modify,
> > >instead
> > >of misleading the user into thinking he is modifying an independent
> > > file.
> >
> > "patch" already handles this correctly ... and
> > backupcopy=auto,breakhardlink in vim (and something similar in other
> > editors I presume)
>
> Yet even a single program failing to break the link will leave you with
> a mess to sort out.
No kidding!
> The only place that can ensure to always break the
> link is the kernel. Which is why I wrote the cowlink patches some years
> back.
Can you post a patch against 2.6.22?
> The still need a lot of love to be merge-ready. But I do use them on a
> daily basis.
Well, if the patch is lean and optional and runtime configurable, then they
should definitely be considered for inclusion.
Thanks!
--
Al
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels)
2007-07-16 17:23 ` Al Boldi
@ 2007-07-16 21:10 ` Jörn Engel
0 siblings, 0 replies; 6+ messages in thread
From: Jörn Engel @ 2007-07-16 21:10 UTC (permalink / raw)
To: Al Boldi; +Cc: Jörn Engel, Satyam Sharma, linux-fsdevel, linux-kernel
On Mon, 16 July 2007 20:23:04 +0300, Al Boldi wrote:
> Jörn Engel wrote:
>
> > The only place that can ensure to always break the
> > link is the kernel. Which is why I wrote the cowlink patches some years
> > back.
>
> Can you post a patch against 2.6.22?
I can and probably will.
> > The still need a lot of love to be merge-ready. But I do use them on a
> > daily basis.
>
> Well, if the patch is lean and optional and runtime configurable, then they
> should definitely be considered for inclusion.
Lean is not the word I would choose. It works. For me. That is about
as much praise as it deserves.
Jörn
--
Beware of bugs in the above code; I have only proved it correct, but
not tried it.
-- Donald Knuth
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels)
2007-07-16 14:22 Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels) Al Boldi
2007-07-16 16:44 ` Satyam Sharma
@ 2007-07-17 11:43 ` Geert Uytterhoeven
1 sibling, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2007-07-17 11:43 UTC (permalink / raw)
To: Al Boldi; +Cc: linux-fsdevel, linux-kernel
On Mon, 16 Jul 2007, Al Boldi wrote:
> Satyam Sharma wrote:
> > Or just "cp -al" to create multiple trees at (almost) no disk cost
> > that won't interfere with each other in any way, and makes the
> > development process / generating patchsets trifle easier as well ...
>
> That would be correct if hardlinks would actually do a CoW on modify, instead
> of misleading the user into thinking he is modifying an independent file.
>
> Moral of the story: try to avoid hardlinks as much as possible!
Or use a different user account.
I used to have `all' Linux kernel source trees hardlinked where possible, as
special user `src'. So I could create a `cp -rl' copy under my own account and
get an error when trying to modify a file.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-07-17 11:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16 14:22 Hardlink Pitfalls (was: Patches for REALLY TINY 386 kernels) Al Boldi
2007-07-16 16:44 ` Satyam Sharma
2007-07-16 16:53 ` Jörn Engel
2007-07-16 17:23 ` Al Boldi
2007-07-16 21:10 ` Jörn Engel
2007-07-17 11:43 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).