mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-05-28 01:36:41 +00:00
cephfs: create subvolume with VolumeNamePrefix
when user provides an option for VolumeNamePrefix create subvolume with the prefix which will be easy for user to identify the subvolumes belongs to the storageclass. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com> (cherry picked from commit 8720f4e2f5ba039248b0fd7e6b62487ed5092df4)
This commit is contained in:
parent
0d635b5b99
commit
8873a87187
@ -210,6 +210,10 @@ func newVolumeOptions(ctx context.Context, requestName string, req *csi.CreateVo
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err = extractOptionalOption(&opts.NamePrefix, "volumeNamePrefix", volOptions); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
opts.RequestName = requestName
|
||||
|
||||
err = opts.Connect(cr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user