Whamcloud - gitweb
LU-9258 nodemap: group quota ID not properly mapped 09/26209/4
authorKit Westneat <kit.westneat@gmail.com>
Mon, 27 Mar 2017 16:27:27 +0000 (12:27 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Apr 2017 03:39:32 +0000 (03:39 +0000)
This patch fixes a typo in which group quota IDs were mapped as user
IDs for quota commands.

Test-Parameters: trivial
Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: I9458b4af04a3638fb8ccf3bd2a96b30305021514
Reviewed-on: https://review.whamcloud.com/26209
Tested-by: Jenkins
Reviewed-by: Stephan Thiell <sthiell@stanford.edu>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdt/mdt_handler.c

index 6b31479..e96a17b 100644 (file)
@@ -2153,7 +2153,7 @@ static int mdt_quotactl(struct tgt_session_info *tsi)
                                    NODEMAP_CLIENT_TO_FS, id);
                break;
        case GRPQUOTA:
-               id = nodemap_map_id(nodemap, NODEMAP_UID,
+               id = nodemap_map_id(nodemap, NODEMAP_GID,
                                    NODEMAP_CLIENT_TO_FS, id);
                break;
        case PRJQUOTA: