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

'lfs mirror extend/create -N 1 FILE` tries to process file '1'

    XMLWordPrintable

Details

    • 3
    • 9223372036854775807

    Description

      Running "lfs mirror extend -N 1 FILE" (or "mirror create -N 1") tries to add a mirror to (or create) the file "1" instead of setting the mirror count to 1:

      # lfs mirror extend -N 1 /myth/tmp/adilger/pflfile
      error: lfs extend: 1: cannot get layout: Invalid argument
      # lfs mirror create -N 2 /myth/tmp/adilger/mirror_file2
      lfs mirror mirror: lfs create: cannot create composite file '2': Permission denied (13)
      

      While the correct syntax is "-N1", and this behavior is strictly correct, it is counter-intuitive for users.

      It would be better to handle this as users expect, by checking if a the mirror count has not been specified, but a filename of "1-9" is specified, and use that to set the mirror count.

      Attachments

        Issue Links

          Activity

            People

              ckansal Chakshu Kansal
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: