freebsd-dev/lib/libspl
Tim Chase fd4f76160c Handle concurrent snapshot automounts failing due to EBUSY.
In the current snapshot automount implementation, it is possible for
multiple mounts to attempted concurrently.  Only one of the mounts will
succeed and the other will fail.  The failed mounts will cause an EREMOTE
to be propagated back to the application.

This commit works around the problem by adding a new exit status,
MOUNT_BUSY to the mount.zfs program which is used when the underlying
mount(2) call returns EBUSY.  The zfs code detects this condition and
treats it as if the mount had succeeded.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1819
2013-11-08 10:45:14 -08:00
..
asm-generic Add atomic_sub_* functions to libspl. 2012-10-17 08:56:37 -07:00
asm-i386 Add atomic_sub_* functions to libspl. 2012-10-17 08:56:37 -07:00
asm-x86_64 Add atomic_sub_* functions to libspl. 2012-10-17 08:56:37 -07:00
include Handle concurrent snapshot automounts failing due to EBUSY. 2013-11-08 10:45:14 -08:00
getexecname.c Add linux libspl support 2010-08-31 13:41:59 -07:00
gethrestime.c Add linux libspl support 2010-08-31 13:41:59 -07:00
gethrtime.c Add linux libspl support 2010-08-31 13:41:59 -07:00
getmntany.c Add linux libspl support 2010-08-31 13:41:59 -07:00
list.c Add linux libspl support 2010-08-31 13:41:59 -07:00
Makefile.am Generate libraries with correct DT_NEEDED entries 2013-10-10 16:56:51 -07:00
mkdirp.c Add linux libspl support 2010-08-31 13:41:59 -07:00
strlcat.c Add linux libspl support 2010-08-31 13:41:59 -07:00
strlcpy.c Add linux libspl support 2010-08-31 13:41:59 -07:00
strnlen.c Add linux libspl support 2010-08-31 13:41:59 -07:00
timestamp.c Add linux libspl support 2010-08-31 13:41:59 -07:00
xdr.c Add linux libspl support 2010-08-31 13:41:59 -07:00
zone.c Add linux libspl support 2010-08-31 13:41:59 -07:00