http://defect.opensolaris.org/bz/show_bug.cgi?id=1975
Summary: 'key -l' shouldn't ask for input if keystatus=available
with key formator=prompt
Classification: Development
Product: zfs-crypto
Version: unspecified
Platform: Other
OS/Version: Solaris
Status: NEW
Severity: normal
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: zfs-crypto-gate-2008-05-15-12:38
# zpool create -o keysource=passphrase,prompt tank /export/home/testfile
Enter passphrase for 'tank':
Enter again:
# zpool key -l tank
Enter passphrase for 'tank':
Enter passphrase for 'tank':
Enter passphrase for 'tank':
Key error in 'tank': Key already loaded.
# zfs create -o keysource=passphrase,prompt -o encryption=on -o
keyscope=dataset tank/fs
Enter passphrase for 'tank/fs':
Enter again:
# zfs key -l tank/fs
Enter passphrase for 'tank/fs':
Key error in 'tank/fs': Key already loaded.
# zfs key -u tank/fs
# zfs key -l tank/fs
Enter passphrase for 'tank/fs':
Enter passphrase for 'tank/fs':
Enter passphrase for 'tank/fs':
Key error in 'tank/fs': Unknown error
#
It should fail directly instead of asking for user interaction and validating
the key value.
Test case zpool_key_l_004 hangs.
--
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.