Skip to content

Commit

Permalink
metadata: Add security.shared for volumes
Browse files Browse the repository at this point in the history
Signed-off-by: hamistao <[email protected]>
  • Loading branch information
hamistao committed Mar 21, 2024
1 parent c7e71c6 commit e7b3abb
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 0 deletions.
63 changes: 63 additions & 0 deletions doc/config_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4330,6 +4330,15 @@ prior to creating the storage pool.

<!-- config group storage-btrfs-pool-conf end -->
<!-- config group storage-btrfs-volume-conf start -->
```{config:option} security.shared storage-btrfs-volume-conf
:condition: "custom block volume"
:defaultdesc: "same as `volume.security.shared` or `false`"
:shortdesc: "Enable volume sharing"
:type: "bool"
Enabling this allows sharing the volume across multiple instances despite of data loss.

```

```{config:option} security.shifted storage-btrfs-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.security.shifted` or `false`"
Expand Down Expand Up @@ -4485,6 +4494,15 @@ If not set, `ext4` is assumed.

```

```{config:option} security.shared storage-ceph-volume-conf
:condition: "custom block volume"
:defaultdesc: "same as `volume.security.shared` or `false`"
:shortdesc: "Enable volume sharing"
:type: "bool"
Enabling this allows sharing the volume across multiple instances despite of data loss.

```

```{config:option} security.shifted storage-ceph-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.security.shifted` or `false`"
Expand Down Expand Up @@ -4625,6 +4643,15 @@ when creating a missing OSD pool.

<!-- config group storage-cephfs-pool-conf end -->
<!-- config group storage-cephfs-volume-conf start -->
```{config:option} security.shared storage-cephfs-volume-conf
:condition: "custom block volume"
:defaultdesc: "same as `volume.security.shared` or `false`"
:shortdesc: "Enable volume sharing"
:type: "bool"
Enabling this allows sharing the volume across multiple instances despite of data loss.

```

```{config:option} security.shifted storage-cephfs-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.security.shifted` or `false`"
Expand Down Expand Up @@ -4764,6 +4791,15 @@ to be placed on the socket I/O.

<!-- config group storage-dir-pool-conf end -->
<!-- config group storage-dir-volume-conf start -->
```{config:option} security.shared storage-dir-volume-conf
:condition: "custom block volume"
:defaultdesc: "same as `volume.security.shared` or `false`"
:shortdesc: "Enable volume sharing"
:type: "bool"
Enabling this allows sharing the volume across multiple instances despite of data loss.

```

```{config:option} security.shifted storage-dir-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.security.shifted` or `false`"
Expand Down Expand Up @@ -4950,6 +4986,15 @@ If not set, `ext4` is assumed.
The size must be at least 4096 bytes, and a multiple of 512 bytes.
```

```{config:option} security.shared storage-lvm-volume-conf
:condition: "custom block volume"
:defaultdesc: "same as `volume.security.shared` or `false`"
:shortdesc: "Enable volume sharing"
:type: "bool"
Enabling this allows sharing the volume across multiple instances despite of data loss.

```

```{config:option} security.shifted storage-lvm-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.security.shifted` or `false`"
Expand Down Expand Up @@ -5128,6 +5173,15 @@ If not set, `ext4` is assumed.

```

```{config:option} security.shared storage-powerflex-volume-conf
:condition: "custom block volume"
:defaultdesc: "same as `volume.security.shared` or `false`"
:shortdesc: "Enable volume sharing"
:type: "bool"
Enabling this allows sharing the volume across multiple instances despite of data loss.

```

```{config:option} security.shifted storage-powerflex-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.security.shifted` or `false`"
Expand Down Expand Up @@ -5273,6 +5327,15 @@ If not set, `ext4` is assumed.

```

```{config:option} security.shared storage-zfs-volume-conf
:condition: "custom block volume"
:defaultdesc: "same as `volume.security.shared` or `false`"
:shortdesc: "Enable volume sharing"
:type: "bool"
Enabling this allows sharing the volume across multiple instances despite of data loss.

```

```{config:option} security.shifted storage-zfs-volume-conf
:condition: "custom volume"
:defaultdesc: "same as `volume.security.shifted` or `false`"
Expand Down
63 changes: 63 additions & 0 deletions lxd/metadata/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -4890,6 +4890,15 @@
},
"volume-conf": {
"keys": [
{
"security.shared": {
"condition": "custom block volume",
"defaultdesc": "same as `volume.security.shared` or `false`",
"longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n",
"shortdesc": "Enable volume sharing",
"type": "bool"
}
},
{
"security.shifted": {
"condition": "custom volume",
Expand Down Expand Up @@ -5058,6 +5067,15 @@
"type": "string"
}
},
{
"security.shared": {
"condition": "custom block volume",
"defaultdesc": "same as `volume.security.shared` or `false`",
"longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n",
"shortdesc": "Enable volume sharing",
"type": "bool"
}
},
{
"security.shifted": {
"condition": "custom volume",
Expand Down Expand Up @@ -5206,6 +5224,15 @@
},
"volume-conf": {
"keys": [
{
"security.shared": {
"condition": "custom block volume",
"defaultdesc": "same as `volume.security.shared` or `false`",
"longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n",
"shortdesc": "Enable volume sharing",
"type": "bool"
}
},
{
"security.shifted": {
"condition": "custom volume",
Expand Down Expand Up @@ -5362,6 +5389,15 @@
},
"volume-conf": {
"keys": [
{
"security.shared": {
"condition": "custom block volume",
"defaultdesc": "same as `volume.security.shared` or `false`",
"longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n",
"shortdesc": "Enable volume sharing",
"type": "bool"
}
},
{
"security.shifted": {
"condition": "custom volume",
Expand Down Expand Up @@ -5560,6 +5596,15 @@
"type": "string"
}
},
{
"security.shared": {
"condition": "custom block volume",
"defaultdesc": "same as `volume.security.shared` or `false`",
"longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n",
"shortdesc": "Enable volume sharing",
"type": "bool"
}
},
{
"security.shifted": {
"condition": "custom volume",
Expand Down Expand Up @@ -5750,6 +5795,15 @@
"type": "string"
}
},
{
"security.shared": {
"condition": "custom block volume",
"defaultdesc": "same as `volume.security.shared` or `false`",
"longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n",
"shortdesc": "Enable volume sharing",
"type": "bool"
}
},
{
"security.shifted": {
"condition": "custom volume",
Expand Down Expand Up @@ -5899,6 +5953,15 @@
"type": "string"
}
},
{
"security.shared": {
"condition": "custom block volume",
"defaultdesc": "same as `volume.security.shared` or `false`",
"longdesc": "Enabling this allows sharing the volume across multiple instances despite of data loss.\n",
"shortdesc": "Enable volume sharing",
"type": "bool"
}
},
{
"security.shifted": {
"condition": "custom volume",
Expand Down

0 comments on commit e7b3abb

Please sign in to comment.