Hi. I'm currently working on snapshots and can't understand one thing.
When someone lookups a snapshot directory it gets automatically mounted from zfsctl_snapdir_lookup() via domount(). Ok, domount() ends up in zfs_domount(). zfs_domount() wants to open dataset through dmu_objset_open(). dmu_objset_open() fails at first time returning EROFS, so we retry with DS_MODE_READONLY, but for me it fails again (EBUSY). I investigated that this dataset was DOS_MODE_PRIMARY open on file system mount, so snapshot cannot DOS_MODE_PRIMARY open it again. What am I missing here or what have I messed up? Any ideas? -- Pawel Jakub Dawidek http://www.wheel.pl pjd at FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-code/attachments/20060826/856787f1/attachment.bin>
