Thread (6 messages) flat view 6 messages, 5 authors, 2016-06-15

Re: [PATCH v2] Add an option not to use link(src, dest) && unlink(src) when that is unreliable

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:46:39

Possibly related (same subject, not in this thread)


On Sat, 25 Apr 2009, Junio C Hamano wrote:
quoted hunk ↗ jump to hunk
@@ -2225,7 +2225,9 @@ int move_temp_to_file(const char *tmpfile, const char *filename)
 {
 	int ret = 0;
 
-	if (link(tmpfile, filename))
+	if (unreliable_hardlinks)
+		goto try_rename;
Much better.

		Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help