Enable lazy init for ext4 with devicemapper

Add file system options for config file, so that user can use
non-default file system parameters for the fs type of choice
Using file system options in config file overwrites the default
options already being used.

Signed-off-by: Alakesh Haloi <alakeshh@amazon.com>
This commit is contained in:
Alakesh Haloi
2021-10-13 15:29:43 -07:00
parent 753f95e23f
commit dc13bcd51e
3 changed files with 30 additions and 6 deletions

View File

@@ -50,6 +50,9 @@ type Config struct {
// Defines file system to use for snapshout device mount. Defaults to "ext4"
FileSystemType fsType `toml:"fs_type"`
// Defines optional file system options passed through config file
FsOptions string `toml:"fs_options"`
}
// LoadConfig reads devmapper configuration file from disk in TOML format