bugzilla-daemon at defect.opensolaris.org
2008-Feb-29 12:30 UTC
[Bug 654] New: ''zpool key -l'' doesn''t work if the pool key is available
http://defect.opensolaris.org/bz/show_bug.cgi?id=654
Summary: ''zpool key -l'' doesn''t work if
the pool key is available
Classification: Development
Product: zfs-crypto
Version: unspecified
Platform: ANY/Generic
OS/Version: Solaris
Status: NEW
Severity: minor
Priority: P3
Component: other
AssignedTo: darrenm at opensolaris.org
ReportedBy: hua.tang at sun.com
QAContact: hua.tang at sun.com
CC: zfs-crypto-discuss at opensolaris.org
Estimated Hours: 0.0
Build: 2008-02-22
If the keystatus of an encrypted dataset with keyscope=pool is available,
running ''zpool key -l'' always return 1 and it doesn''t
ask for input if the key
locator=prompt.
# zpool set keysource=passphrase,file:///export/home/passfile mypool
# zpool key -l mypool
keydata=8846f8fc5eeb4eda6e3fbf4afb8903e78e73b887289fee65c9eeeaddcdc7d2f
change_keydatachange_kek# zfs create -o encryption=on mypool/fs1
# cp file1.txt /mypool/fs1
# zpool key -l mypool
# echo $?
1
# zpool set keysource=passphrase,prompt mypool
# zpool key -l mypool
# echo $?
1
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
bugzilla-daemon at defect.opensolaris.org
2008-Feb-29 12:43 UTC
[Bug 654] ''zpool key -l'' doesn''t work if the pool key is available
http://defect.opensolaris.org/bz/show_bug.cgi?id=654
Darren J Moffat <darrenm at opensolaris.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|darrenm at opensolaris.org |ajscarp at yahoo.com
Status|NEW |CAUSEKNOWN
--- Comment #1 from Darren J Moffat <darrenm at opensolaris.org>
2008-02-29 04:43:41 ---
A return code of 1 is the correct behaviour since we don''t attempt to
load a
key if one is already loaded.
There should however be a message for this rather than just a failure return
code.
There should be no prompting or attempting to read the file though.
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
bugzilla-daemon at defect.opensolaris.org
2008-Mar-03 05:53 UTC
[Bug 654] ''zpool key -l'' doesn''t work if the pool key is available
http://defect.opensolaris.org/bz/show_bug.cgi?id=654
ajscarp at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|CAUSEKNOWN |CLOSED
Resolution| |FIXED
--- Comment #2 from ajscarp at yahoo.com 2008-03-02 21:53:04 ---
Error messages reworked
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.