Print this page
3006 VERIFY[S,U,P] and ASSERT[S,U,P] frequently check if first argument is zero

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/zfs_ioctl.c
          +++ new/usr/src/uts/common/fs/zfs/zfs_ioctl.c
↓ open down ↓ 1950 lines elided ↑ open up ↑
1951 1951                   * which we aren't supposed to do with a
1952 1952                   * DS_MODE_USER hold, because it could be
1953 1953                   * inconsistent.  So this is a bit of a workaround...
1954 1954                   * XXX reading with out owning
1955 1955                   */
1956 1956                  if (!zc->zc_objset_stats.dds_inconsistent &&
1957 1957                      dmu_objset_type(os) == DMU_OST_ZVOL) {
1958 1958                          error = zvol_get_stats(os, nv);
1959 1959                          if (error == EIO)
1960 1960                                  return (error);
1961      -                        VERIFY3S(error, ==, 0);
     1961 +                        VERIFY0(error);
1962 1962                  }
1963 1963                  error = put_nvlist(zc, nv);
1964 1964                  nvlist_free(nv);
1965 1965          }
1966 1966  
1967 1967          return (error);
1968 1968  }
1969 1969  
1970 1970  /*
1971 1971   * inputs:
↓ open down ↓ 3935 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX