Print this page
3744 zfs shouldn't ignore errors unmounting snapshots
Submitted by:   Will Andrews <willa@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/zfs_ioctl.h
          +++ new/usr/src/uts/common/fs/zfs/sys/zfs_ioctl.h
↓ open down ↓ 336 lines elided ↑ open up ↑
 337  337          nvlist_t        *zct_props;
 338  338  } zfs_creat_t;
 339  339  
 340  340  extern dev_info_t *zfs_dip;
 341  341  
 342  342  extern int zfs_secpolicy_snapshot_perms(const char *name, cred_t *cr);
 343  343  extern int zfs_secpolicy_rename_perms(const char *from,
 344  344      const char *to, cred_t *cr);
 345  345  extern int zfs_secpolicy_destroy_perms(const char *name, cred_t *cr);
 346  346  extern int zfs_busy(void);
 347      -extern void zfs_unmount_snap(const char *);
      347 +extern int zfs_unmount_snap(const char *);
 348  348  extern void zfs_destroy_unmount_origin(const char *);
 349  349  
 350  350  /*
 351  351   * ZFS minor numbers can refer to either a control device instance or
 352  352   * a zvol. Depending on the value of zss_type, zss_data points to either
 353  353   * a zvol_state_t or a zfs_onexit_t.
 354  354   */
 355  355  enum zfs_soft_state_type {
 356  356          ZSST_ZVOL,
 357  357          ZSST_CTLDEV
↓ open down ↓ 21 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX