HomeFreeBSD

Avoid ELOOP on auto-mounted snapshots

Description

Avoid ELOOP on auto-mounted snapshots

Ensure that the path member pointers are associated with the
newly-mounted snapshot when zpl_snapdir_automount() returns. Otherwise
the follow_automount() function may be called repeatedly, leading to an
incorrect ELOOP error return. This problem was observed as a 'Too many
levels of symbolic links' error from user-space commands accessing an
unmounted snapshot in the .zfs/snapshot directory.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #816

Details

Provenance
Ned Bass <bass6@llnl.gov>Authored on Dec 12 2012, 11:55 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Dec 13 2012, 4:57 PM
Parents
rG2ae103196248: Linux 3.7 compat, schedule_delayed_work()
Branches
Unknown
Tags
Unknown
Reverted By
rG1c50c992bafd: Revert "Avoid ELOOP on auto-mounted snapshots"