Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-19343

lctl setquota -g quota_usr incorrectly showing "invalid project id" instead of "invalid group id".

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Trivial
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      lfs setquota -g quota_usr -b 0 -B 0 -i 0 -I 0 /mnt/lustre
      lt-lfs setquota: invalid project id 'quota_usr'
      setquota failed: Operation not permitted
      sanity-quota : @@@@@@ FAIL: clear quota for [type:-g name:quota_usr] failed 

      The lfs_setquota function where all quota types (user, group, and project) were using the same error handling path that always displayed "invalid project id" regardless of the actual quota type being processed.

      Should be fixed to shows the appropriate error message based on the quota type:

      • "invalid user id" for -u (user quota)
      • "invalid group id" for -g (group quota)
      • "invalid project id" for -p (project quota)

       

      Attachments

        Activity

          People

            ablagodarenko Artem Blagodarenko
            ablagodarenko Artem Blagodarenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: