Use PVE::Storage::config() and the new PVE::Storage::write_config() instead of cfs_read_file and cfs_write_file with a hardcoded filename.
Use PVE::Storage::config() and the new PVE::Storage::write_config() instead of cfs_read_file and cfs_write_file with a hardcoded filename.