Skip to content

Commit

Permalink
Add mkfs_options to VolumeCapability.MountVolume
Browse files Browse the repository at this point in the history
Make it possible to add options to `mkfs` for formatting a filesystem.
With additional options to create a filesystem on a volume, provisioners
can be instructed to enable/disable certain features that may not be
available on all nodes.

See-also: ceph/ceph-csi#374
Fixes: container-storage-interface#402
  • Loading branch information
nixpanic committed Apr 29, 2020
1 parent e129a75 commit 87024a7
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 213 deletions.
4 changes: 4 additions & 0 deletions csi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,10 @@ message VolumeCapability {
// to untrusted entities. The total size of this repeated field
// SHALL NOT exceed 4 KiB.
repeated string mount_flags = 2;

// The options passed to the formatting program that creates the
// filesystem on the volume. This field is OPTIONAL.
repeated string mkfs_options = 3;
}

// Specify how a volume can be accessed.
Expand Down
Loading

0 comments on commit 87024a7

Please sign in to comment.