Files
libguestfs/daemon
Richard W.M. Jones 533082e282 daemon: Change ln, ln-f (hard-link) APIs to use link(2) instead of external ln (RHBZ#895905).
The reasons to do this are twofold:

(a) It's probably a tiny bit faster.

(b) It lets us capture the real errno if the link(2) syscall fails.

The errno is also passed through guestmount, fixing RHBZ#895905:

+ guestmount -a test1.img -m /dev/sda1:/ -m /dev/sda2:/boot /tmp/mnt
+ touch /tmp/mnt/foo
+ cd /tmp/mnt
+ ln foo boot/foo
ln: failed to create hard link ‘boot/foo’ => ‘foo’: Invalid cross-device link
2013-01-21 14:23:07 +00:00
..
2012-10-17 11:12:07 +01:00
2011-11-08 14:43:07 +00:00
2012-10-03 08:55:24 +01:00
2012-12-27 18:08:55 +00:00
2011-11-08 14:43:07 +00:00
2012-10-17 11:12:07 +01:00
2011-11-08 14:43:07 +00:00
2012-03-13 08:23:56 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2012-07-30 15:16:45 +01:00