http://defect.opensolaris.org/bz/show_bug.cgi?id=1114

           Summary: lack of error messages for 'zfs create ..' when
                    keysource file couldn't be converted to a key
    Classification: Development
           Product: zfs-crypto
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            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


Test cases:
# zfs create -o encryption=on -o keyscope=dataset -o 
keysource=hex,file://$RAW_KEY_FILE tank/fs_1
# echo $?
1
( $RAW_KEY_FILE isn't a valid hex key file.)

# zfs create -o encryption=on -o keyscope=dataset -o 
keysource=raw,file://$HEX_KEY_FILE tank/fs_2
# echo $?
1
( $HEX_KEY_FILE isn't a valid raw key file.)

# zfs create -o encryption=on -o keyscope=dataset -o 
keysource=passphrase,file://$BLANKFILE tank/fs_3
# echo $?
1
( $BLANK_FILE is a blank file.)

Currently these commands fail without any error message. There should be error
indication like:
the file can't be converted to a key.

-- 
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.

Reply via email to