Print this page
2882 implement libzfs_core
2883 changing "canmount" property to "on" should not always remount dataset
2900 "zfs snapshot" should be able to create multiple, arbitrary snapshots at once
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Chris Siden <christopher.siden@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Bill Pijewski <wdp@joyent.com>
Reviewed by: Dan Kruchinin <dan.kruchinin@gmail.com>

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2012 by Delphix. All rights reserved.
  */
 
 /*
  * ZFS control directory (a.k.a. ".zfs")
  *

@@ -747,12 +748,11 @@
         err = zfs_secpolicy_snapshot_perms(name, cr);
         if (err)
                 return (err);
 
         if (err == 0) {
-                err = dmu_objset_snapshot(name, dirname, NULL, NULL,
-                    B_FALSE, B_FALSE, -1);
+                err = dmu_objset_snapshot_one(name, dirname);
                 if (err)
                         return (err);
                 err = lookupnameat(dirname, seg, follow, NULL, vpp, dvp);
         }