]> granicus.if.org Git - zfs/commit
Invalidate cache during a zpool labelclear
authorGiuseppe Di Natale <dinatale2@llnl.gov>
Wed, 12 Apr 2017 22:49:31 +0000 (15:49 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 13 Apr 2017 16:13:51 +0000 (09:13 -0700)
commita167aa7cd45b045047a75c07e06f3697bed8440c
treed8d82d60b253ad0445dc6c1292368ef4b5a28d5c
parent00481e7dad1d5608ae244eb053517e2c36d9a6de
Invalidate cache during a zpool labelclear

Be sure to invalidate a vdev's cache before performing
a zpool labelclear. There are cases where the cache is
stale because we did some operation that bypassed it,
and since we are doing an open with only O_RDWR, we
should invalidate it to be safe.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6009
cmd/zpool/zpool_main.c