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

"lfs mirror delete --mirror-id" argument has no max value

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • Upstream
    • 3
    • 9223372036854775807

    Description

      "lfs mirror delete --mirror-id" should not allow mirror-id greater than 65535 as it is stored in __u16.

      [root@vm4 flr]# lfs mirror delete --mirror-id 65535 foo 
      error lfs mirror delete: file 'foo' does not contain mirror with id 65535
      
      [root@vm4 flr]# lfs mirror delete --mirror-id 65537 foo
      error lfs mirror delete: file 'foo' does not contain mirror with id 1
      

      I think it also applies to any "lfs mirror" command that uses --mirror-id

      Attachments

        Issue Links

          Activity

            [LU-13435] "lfs mirror delete --mirror-id" argument has no max value

            Dominique Martinet (dominique.martinet@cea.fr) uploaded a new patch: https://review.whamcloud.com/38577
            Subject: LU-13435 utils: Add max value to --mirror-id
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: a334a8c5177bae218338b60184f1da53809d06e9

            gerrit Gerrit Updater added a comment - Dominique Martinet (dominique.martinet@cea.fr) uploaded a new patch: https://review.whamcloud.com/38577 Subject: LU-13435 utils: Add max value to --mirror-id Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: a334a8c5177bae218338b60184f1da53809d06e9

            People

              wc-triage WC Triage
              baillergeau Kevin Baillergeau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: