Project

General

Profile

Bug #7184

abort in libzfs when running "zfs userspace" on a zvol

Added by Ivan Richwalski about 4 years ago.

Status:
New
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2016-07-14
Due date:
% Done:

30%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

If you try to get the userspace or groupspace on a zvol, the generated error results in passing EINVAL to zfs_standard_error_fmt, when it should return a specific error to inform the user that those properties aren't available on volumes.


root@ciara:/root# zfs userspace tank/test-vol
internal error: Invalid argument
Abort (core dumped)
root@ciara:/root# pstack core
core 'core' of 520662:  zfs userspace tank/test-vol
 feeefaa7 _lwp_kill (1, 6, a6, fef5e000, fef5e000, 808f970) + 7
 fee8566b raise    (6, 0, 803f740, feeaf43b, 0, 0) + 2b
 fee6019e abort    (80770e0, fed9d350, 808f970, 803f7fc, 803f7b8, fedae000) + 10e
 fed905c5 zfs_verror (808f548, 816, 803f818, 803f7fc, 808f548, feef223d) + 96
 fed90aa8 zfs_standard_error_fmt (808f548, 16, 803f818, fed6cd80) + 1b5
 fed6cd8c zfs_userspace (8093cc8, 0, 805ff30, 8047884) + f7
 0805ba3e zfs_do_userspace (2, 8047d70, 80768a0, 801, 0, 3) + 532
 0805ebf5 main     (feef13f7, fef686e8, 8047d60, 80558cb, 3, 8047d6c) + 22c
 080558cb _start   (3, 8047e44, 8047e48, 8047e52, 0, 8047e60) + 83

Also available in: Atom PDF