MCPcopy Create free account
hub / github.com/archlinux/archinstall / BtrfsOptions

Class BtrfsOptions

archinstall/lib/models/device.py:1375–1388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373
1374@dataclass
1375class BtrfsOptions:
1376 snapshot_config: SnapshotConfig | None
1377
1378 def json(self) -> _BtrfsOptionsSerialization:
1379 return {'snapshot_config': self.snapshot_config.json() if self.snapshot_config else None}
1380
1381 @classmethod
1382 def parse_arg(cls, arg: _BtrfsOptionsSerialization) -> Self | None:
1383 snapshot_args = arg.get('snapshot_config')
1384 if snapshot_args:
1385 snapshot_config = SnapshotConfig.parse_args(snapshot_args)
1386 return cls(snapshot_config)
1387
1388 return None
1389
1390
1391class _DeviceModificationSerialization(TypedDict):

Callers 1

showMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected