bugzilla-daemon at defect.opensolaris.org
2008-Apr-15 07:58 UTC
[Bug 1204] New: ''zfs key -l'' should fail if keyscope=pool
http://defect.opensolaris.org/bz/show_bug.cgi?id=1204
Summary: ''zfs key -l'' should fail if keyscope=pool
Classification: Development
Product: zfs-crypto
Version: unspecified
Platform: Other
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
Currently it fails with return 255. The error messages are wrong.
What''s more, I believe there must be something else wrong in the source
code
besides the return code and incorrect error messages. I suspect it has relation
with the panic bug 1055.
# zpool create -o keysource=passphrase,prompt tank /export/home/testfileEnter
passphrase for ''tank'':
Enter again:
# zfs create -o keyscope=dataset -o keysource=passphrase,prompt -o
encryption=on tank/fs
Enter passphrase for ''tank/fs'':
Enter again:
# zpool key -u tank
# zpool key -l tank
Enter passphrase for ''tank'':
# echo $?
0
# zfs create -o encryption=on tank/fs_2
# zfs key -u tank/fs_2
# echo $?
0
# zfs get keystatus tank/fs_2
NAME PROPERTY VALUE SOURCE
tank/fs_2 keystatus available -
# zfs key -l tank/fs_2
Key Load Error in ''tank/fs_2''.: Key already loaded.
# echo $?
255
--
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-Apr-15 20:26 UTC
[Bug 1204] ''zfs key -l'' should fail if keyscope=pool
http://defect.opensolaris.org/bz/show_bug.cgi?id=1204
Darren J Moffat <darrenm at opensolaris.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|darrenm at opensolaris.org |ajscarp at yahoo.com
Status|NEW |ACCEPTED
--- Comment #1 from Darren J Moffat <darrenm at opensolaris.org>
2008-04-15 13:26:49 ---
This should be caught in userland.
--
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-Apr-18 18:31 UTC
[Bug 1204] ''zfs key -l'' should fail if keyscope=pool
http://defect.opensolaris.org/bz/show_bug.cgi?id=1204
ajscarp at yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ACCEPTED |CLOSED
Resolution| |FIXED
--- Comment #2 from ajscarp at yahoo.com 2008-04-18 11:31:58 ---
has been fixed in 2008-4-18 putback
--
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.