HomeFreeBSD

Handle concurrent snapshot automounts failing due to EBUSY.

Description

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

Details

Provenance
Tim Chase <tim@chase2k.com>Authored on Nov 7 2013, 5:55 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 8 2013, 6:45 PM
Parents
rGb1d13a60d12a: Document the dedupditto pool property.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGfd4f76160cb3: Handle concurrent snapshot automounts failing due to EBUSY. (authored by Tim Chase <tim@chase2k.com>).Nov 8 2013, 6:45 PM