Prasad Joshi
2013-08-08 14:31:32 UTC
Hello All,
Importing a pool with name starting with number followed by alphabet
fails assertion error.
# zpool import 12a
Assertion failed: import->poolname == 0 || import->guid == 0, file
../common/libzfs_import.c, line 1467, function zpool_search_import
Abort (core dumped)
zpool import works with poolname as well as guid of the pool. The
function zpool_do_import(), which is responsible for importing the
pool, by default assumes importing pool using GUID. However, if the
given string, has alphabets, it assumes import using poolname.
However, in this case the extracted part of GUID is not reset and
therefore it asserts in pool search.
Webrev: http://cr.illumos.org/~webrev/Prasad/illumos-1765-wenrev/
Issue Tracker: https://illumos.org/issues/1765
Thanks and Regards,
Prasad
Importing a pool with name starting with number followed by alphabet
fails assertion error.
# zpool import 12a
Assertion failed: import->poolname == 0 || import->guid == 0, file
../common/libzfs_import.c, line 1467, function zpool_search_import
Abort (core dumped)
zpool import works with poolname as well as guid of the pool. The
function zpool_do_import(), which is responsible for importing the
pool, by default assumes importing pool using GUID. However, if the
given string, has alphabets, it assumes import using poolname.
However, in this case the extracted part of GUID is not reset and
therefore it asserts in pool search.
Webrev: http://cr.illumos.org/~webrev/Prasad/illumos-1765-wenrev/
Issue Tracker: https://illumos.org/issues/1765
Thanks and Regards,
Prasad