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

Snapshot name only takes up to first space

    XMLWordPrintable

Details

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

    Description

      Consider:

      [root@mds1 ~]# lctl snapshot_create --name 'foo bar baz' --fsname zfsmo --barrier off
      The snapshot foo bar baz exists
      Can't create the snapshot foo bar baz
      

      However, the snapshot foo bar baz does not exist although the snapshot foo does:

      filesystem_name: zfsmo
      snapshot_name: foo
      snapshot_fsname: 5c7b22a7
      modify_time: Fri Sep 11 16:35:11 2020
      create_time: Fri Sep 11 16:35:11 2020
      comment: Backup for Sept 10 2020
      status: not mount
      

      It seems that spaces are not allowed in snapshot names, if so we should return an error instead of matching on substring.

      Attachments

        Activity

          People

            wc-triage WC Triage
            joe.grund Joe Grund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: