Actions
Bug #3028
closedzfs {group,user}space -n prints (null) instead of numeric GID/UID
Start date:
2012-07-23
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
Description
# zfs userspace pvs TYPE NAME USED QUOTA POSIX User root 3K none POSIX User yuri 10G # zfs userspace -n pvs TYPE NAME USED QUOTA POSIX User (null) 10G POSIX User (null) 3K none # zfs groupspace pvs TYPE NAME USED QUOTA POSIX Group root 3K none # zfs groupspace -n pvs TYPE NAME USED QUOTA POSIX Group (null) 3K none
Updated by Igor Pashev almost 10 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
Updated by Igor Pashev almost 10 years ago
I think it is usr/src/cmd/zfs/zfs_main.c
It uses nvlist_add_uint32()
to set id [1], but test for DATA_TYPE_UINT64
when printing [2],
thus, strval
is NULL;
I can't go further, beacuse fresh zfs
(without any changes) crashes on zfs list
:
libumem.so.1`process_free+0x22(1, 1, 0, fed7da49) libumem.so.1`free+0x1a(1) libzfs.so.1`zcmd_free_nvlists+0x22(80465d0, 5a04, 80465d0, fed5b5ee, 0, 80465d0 ) libzfs.so.1`namespace_reload+0x124(80a4548, fefc06a4, fefa09a8, 540) libzfs.so.1`zfs_iter_root+0x1e(80a4548, 8060134, 8047bd0, fed8182d, 80a1f10, 7) zfs_for_each+0xfb(0, 8047d3c, 6, 7, 0, 8047ca8) zfs_do_list+0x313(1, 8047d38, 80759a0, 801, 8047d00, fefc06a4) main+0x212(2, 8047d34, 8047d40, 8047d28, 80552f2, 8060a60) _start+0x83(2, 8047dfc, 8047e17, 0, 8047e1c, 8047e6e)
and reports internal error: out of memory
on zfs userspace
[1] https://bitbucket.org/illumos/illumos-gate/src/7231b684c18b/usr/src/cmd/zfs/zfs_main.c#cl-2292
[2] https://bitbucket.org/illumos/illumos-gate/src/7231b684c18b/usr/src/cmd/zfs/zfs_main.c#cl-2491
Updated by Igor Pashev almost 10 years ago
Updated by Rich Lowe over 9 years ago
- Status changed from In Progress to Resolved
- Assignee set to Yuri Pankov
- % Done changed from 30 to 100
- Tags deleted (
needs-triage)
Resolved in r13803 commit:b5e49d71ff0e
Actions