]> granicus.if.org Git - zfs/commit
Fix zpool_add_005_pos
authorbunder2015 <omfgbunder@gmail.com>
Tue, 27 Jun 2017 17:06:07 +0000 (13:06 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 27 Jun 2017 17:06:07 +0000 (10:06 -0700)
commit47770d30f205b81ece1f60760f3edb5c04574e6e
tree5d8a740dc9c81a485162f0dab4a41ceb4e1f8315
parent58404a73db9e245778aa7fd7028fbf742f8b815b
Fix zpool_add_005_pos

Under Linux the existence of a block device in /etc/fstab is
not sufficient to prevent the use of the force flag.  Without
the force flag a warning will be printed that the device has
a filesystem of a given type.  Providing the force option
will overwrite that filesystem as long as it is not actively
mounted.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Tested-by: bunder2015 <omfgbunder@gmail.com>
Signed-off-by: bunder2015 <omfgbunder@gmail.com>
Closes #6267
Closes #6272
tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add_005_pos.ksh