mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
cephfs: set pool layout of the FS subvolumes
... instead of that of the `csi` subvolume group. The pool layout specified via storage class's `pool` setting is a subvolume property and not a subvolume group property. The `csi` subvolume group may have subvolumes of different storage classes with different pool layouts. Fixes: #499 Signed-off-by: Ramana Raja <rraja@redhat.com>
This commit is contained in:
parent
c7d990a96b
commit
5932fff93e
@ -85,8 +85,6 @@ func createVolume(volOptions *volumeOptions, cr *util.Credentials, volID volumeI
|
|||||||
csiSubvolumeGroup,
|
csiSubvolumeGroup,
|
||||||
"--mode",
|
"--mode",
|
||||||
"777",
|
"777",
|
||||||
"--pool_layout",
|
|
||||||
volOptions.Pool,
|
|
||||||
"-m", volOptions.Monitors,
|
"-m", volOptions.Monitors,
|
||||||
"-c", util.CephConfigPath,
|
"-c", util.CephConfigPath,
|
||||||
"-n", cephEntityClientPrefix+cr.ID,
|
"-n", cephEntityClientPrefix+cr.ID,
|
||||||
@ -108,6 +106,7 @@ func createVolume(volOptions *volumeOptions, cr *util.Credentials, volID volumeI
|
|||||||
strconv.FormatInt(bytesQuota, 10),
|
strconv.FormatInt(bytesQuota, 10),
|
||||||
"--group_name",
|
"--group_name",
|
||||||
csiSubvolumeGroup,
|
csiSubvolumeGroup,
|
||||||
|
"--pool_layout", volOptions.Pool,
|
||||||
"-m", volOptions.Monitors,
|
"-m", volOptions.Monitors,
|
||||||
"-c", util.CephConfigPath,
|
"-c", util.CephConfigPath,
|
||||||
"-n", cephEntityClientPrefix+cr.ID,
|
"-n", cephEntityClientPrefix+cr.ID,
|
||||||
|
Loading…
Reference in New Issue
Block a user