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

'lfs migrate' command can read filenames from file/stdin

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.17.0
    • None
    • 3
    • 9223372036854775807

    Description

      This issue is splitted from LU-16789.

      By Andreas:

      I think "-0" should be an option for "lfs migrate" (and "lfs mirror extend") to read NUL-terminated filenames from stdin, and --files-from=FILELIST should read from a list of files, with "FILELIST=-" should indicate stdin (one file per line). This matches the option name from tar and rsync, and allows reading from both an existing file as well as a pipe. 

      Attachments

        Issue Links

          Activity

            [LU-18454] 'lfs migrate' command can read filenames from file/stdin
            pjones Peter Jones added a comment -

            Merged for 2.17

            pjones Peter Jones added a comment - Merged for 2.17

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57104/
            Subject: LU-18454 utils: 'lfs migrate' can read filenames from file
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: b85d28309764e9988005a8e98cfd4ffd900c090c

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/57104/ Subject: LU-18454 utils: 'lfs migrate' can read filenames from file Project: fs/lustre-release Branch: master Current Patch Set: Commit: b85d28309764e9988005a8e98cfd4ffd900c090c
            flei Feng Lei added a comment -

            --files-from=FILELIST should read from a list of files

            Personally I think it's over complex. So I'm going to support only one file whose content are multiple lines of filenames.

            flei Feng Lei added a comment - --files-from=FILELIST should read from a list of files Personally I think it's over complex. So I'm going to support only one file whose content are multiple lines of filenames.

            "Feng Lei <flei@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57104
            Subject: LU-18454 utils: 'lfs migrate' can read filenames from file
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 06949106a980f6a5c6b0f52f0ddd806d21532323

            gerrit Gerrit Updater added a comment - "Feng Lei <flei@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/57104 Subject: LU-18454 utils: 'lfs migrate' can read filenames from file Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 06949106a980f6a5c6b0f52f0ddd806d21532323

            People

              flei Feng Lei
              flei Feng Lei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: