openebs / lvm-localpv

Dynamically provision Stateful Persistent Node-Local Volumes & Filesystems for Kubernetes that is integrated with a backend LVM2 data storage stack.
Apache License 2.0
235 stars 92 forks source link

Extra mkfs options #296

Open mhkarimi1383 opened 2 months ago

mhkarimi1383 commented 2 months ago

Describe the problem/challenge you have

I want to use lvm-localpv withing MinIO and some other applications with high number of Inode usage and sometimes I need to inject extra params into mkfs command

Describe the solution you'd like

Adding mkfsOptions just like mountOptions

Anything else you would like to add: I wanted to add this feature as a PR but I don't know where to change the code to add this (I mean connecting parameters struct into formatAndMountSensitive function

(line #358 of pkg/lvm/mount.go)

Environment: