8418 zfs_prop_get_table() call in zfs_validate_name() is a no-op

Review Request #599 — Created June 23, 2017 and submitted — Latest diff uploaded

marcel
illumos-gate
master
8418
61a1f22...
general
This removes a no-op call from zfs_validate_name().
Without the fix:

# dtrace -n 'pid$target::zfs_validate_name:entry{self->t=1} pid$target::zfs_prop_get_table:entry/self->t/{} pid$target::zfs_validate_name:return{self->t=0}' -c "zfs list rpool" 2> /dev/null
NAME    USED  AVAIL  REFER  MOUNTPOINT
rpool  6.88G  54.6G  31.5K  /rpool
CPU     ID                    FUNCTION:NAME
  0  74118         zfs_prop_get_table:entry

#


With the fix:

# dtrace -n 'pid$target::zfs_validate_name:entry{self->t=1} pid$target::zfs_prop_get_table:entry/self->t/{} pid$target::zfs_validate_name:return{self->t=0}' -c "zfs list rpool" 2> /dev/null
NAME    USED  AVAIL  REFER  MOUNTPOINT
rpool  7.15G  54.4G  31.5K  /rpool

#
Loading...