http://defect.opensolaris.org/bz/show_bug.cgi?id=1984
Summary: 'zpool key -c' doesn't work
Classification: Development
Product: zfs-crypto
Version: unspecified
Platform: Other
OS/Version: Solaris
Status: NEW
Severity: major
Priority: P2
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: zfs-crypto-gate-2008-05-15-12:38
Neither 'zpool key -c pool' nor 'zpool key -c -o keysource=.. pool' work. Below
are some test cases.
1.
# zpool create -o keysource=passphrase,prompt tank /export/home/testfile
Enter passphrase for 'tank': ==> Enter "test" here!
Enter again:
# zpool key -c tank
Enter passphrase for 'tank': ==> Enter "test" here!
Enter again: ==> Enter "test" here!
Key change error: Operation not supported
2.
# zpool destroy tank
# zpool create -o keysource=passphrase,prompt tank /export/home/testfile
Enter passphrase for 'tank': ==> Enter "test" here!
Enter again:
# zpool key -c tank
Enter passphrase for 'tank': ==> Enter "t" here!
Enter passphrase for 'tank': ==> Enter "t" here!
Enter passphrase for 'tank': ==> Enter "t" here!
Key change error: Unknown error
3.
# zpool destroy tank
# zpool create -o keysource=passphrase,file:///export/home/passphrase_file tank
/export/home/testfile
# zpool key -c tank
Key change error: Operation not supported
4.
# zpool key -c -o keysource=passphrase,prompt tank
Enter passphrase for 'tank': ==> Enter "test" here!
Enter again:
Key change error: Operation not supported
5.
# zpool key -c -o keysource=passphrase,prompt tank
Enter passphrase for 'tank': ==> Enter "t" here!
Enter passphrase for 'tank': ==> Enter "t" here!
Enter passphrase for 'tank': ==> Enter "t" here!
Key change error: Unknown error
6.
# zpool key -c -o keysource=passphrase,file:///export/home/passphrase_file tank
Key change error: Operation not supported
There are two issues. One is "Operation not supported", see test cases 1, 3, 4,
6. The other is changing to prompt shouldn't ask for/validate the current key
for keystatus is already available, see test cases 2 and 5, the error messages
are "Unkown error".
--
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.