Fix get/set users/groups in quota props via numeric id
authorMassimo Maggi <massimo@mmmm.it>
Sun, 16 Dec 2012 13:33:51 +0000 (14:33 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 17 Dec 2012 17:52:58 +0000 (09:52 -0800)
commit5e6320cd1262de6eada39751807c31c059517d01
tree3e34d59a8d08f79565c28aa96378c64d3ed96a36
parentfd7fd5ebcf6cceb107dd27592a9bd7d60f93738f
Fix get/set users/groups in quota props via numeric id

Fix setting/getting users/groups in quota properties through
numeric identifier.  This support was accidentally disabled
in the original port by applying the HAVE_IDMAP wrapper macro
too broadly.

Fix obtained by moving #ifdef HAVE_IDMAP to exclude only
the part of code that really needs IDMAP.  Now zfs (get|set)
(user|group)quota@1000 works as expected.

Signed-off-by: Massimo Maggi <massimo@mmmm.it>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1147
lib/libzfs/libzfs_dataset.c