[LU-13957] Snapshot name only takes up to first space Created: 11/Sep/20 Updated: 11/Sep/20 |
|
| Status: | Open |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Joe Grund | Assignee: | WC Triage |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | lsnapshot | ||
| Severity: | 3 |
| Rank (Obsolete): | 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. |