add api to format disks and create datastores
This commit is contained in:
1 parent
fab2413741
commit
d4f2397d4c
4 files changed
+229
No files matched your search
@@ -126,6 +126,10 @@ pub fn parse_systemd_timer(filename: &str) -> Result<SectionConfigData, Error> {
|
||||
parse_systemd_config(&TIMER_CONFIG, filename)
|
||||
}
|
||||
|
||||
pub fn parse_systemd_mount(filename: &str) -> Result<SectionConfigData, Error> {
|
||||
parse_systemd_config(&MOUNT_CONFIG, filename)
|
||||
}
|
||||
|
||||
fn save_systemd_config(config: &SectionConfig, filename: &str, data: &SectionConfigData) -> Result<(), Error> {
|
||||
let raw = config.write(filename, &data)?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user