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.