]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Use dsl_dataset_snap_lookup()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Jan 2013 22:57:53 +0000 (14:57 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Jan 2013 23:07:40 +0000 (15:07 -0800)
commit6772fb679a4205427a385d174359b2a5826da613
tree02ce78b8720573be954e81b4d121df8c9a855886
parentba43f4565aa151065dd2b64c1aab8f1051ce1295
Use dsl_dataset_snap_lookup()

Retire the dmu_snapshot_id() function which was introduced in the
initial .zfs control directory implementation.  There is already
an existing dsl_dataset_snap_lookup() which does exactly what we
need, and the dmu_snapshot_id() function as implemented is racy.

https://github.com/zfsonlinux/zfs/issues/1215#issuecomment-12579879

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1238
include/sys/dmu.h
include/sys/dsl_dataset.h
module/zfs/dmu_objset.c
module/zfs/dsl_dataset.c
module/zfs/zfs_ctldir.c