├── .github └── workflows │ └── ci.yml ├── .gitignore ├── Cargo.toml ├── LICENSE ├── Makefile ├── README.md ├── man ├── .gitignore ├── index.txt ├── zram-generator.conf.md └── zram-generator.md ├── src ├── config.rs ├── generator.rs ├── kernlog.rs ├── lib.rs ├── main.rs └── setup.rs ├── tests ├── 01-basic │ ├── proc │ │ └── meminfo │ ├── run.expected │ │ └── units │ │ │ ├── dev-zram0.swap │ │ │ ├── swap.target.wants │ │ │ └── dev-zram0.swap │ │ │ └── systemd-zram-setup@zram0.service.d │ │ │ └── bindings.conf │ └── usr │ │ └── lib │ │ └── systemd │ │ └── zram-generator.conf ├── 02-zstd │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf │ ├── proc │ │ └── meminfo │ └── run.expected │ │ └── units │ │ ├── dev-zram0.swap │ │ ├── swap.target.wants │ │ └── dev-zram0.swap │ │ └── systemd-zram-setup@zram0.service.d │ │ └── bindings.conf ├── 03-too-much-memory │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf │ ├── proc │ │ └── meminfo │ └── run.expected │ │ └── units │ │ └── .empty ├── 04-dropins │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf.d │ │ │ ├── 03-drop3.conf │ │ │ ├── 04-drop4.conf │ │ │ └── zram-generator.conf │ ├── proc │ │ └── meminfo │ ├── run.expected │ │ └── units │ │ │ ├── dev-zram0.swap │ │ │ ├── dev-zram2.swap │ │ │ ├── swap.target.wants │ │ │ ├── dev-zram0.swap │ │ │ └── dev-zram2.swap │ │ │ ├── systemd-zram-setup@zram0.service.d │ │ │ └── bindings.conf │ │ │ └── systemd-zram-setup@zram2.service.d │ │ │ └── bindings.conf │ └── usr │ │ └── lib │ │ └── systemd │ │ ├── zram-generator.conf │ │ └── zram-generator.conf.d │ │ ├── 01-drop1.conf │ │ ├── 02-drop2.conf │ │ └── 03-drop3.conf ├── 05-kernel-disabled │ ├── proc │ │ ├── cmdline │ │ └── meminfo │ ├── run.expected │ │ └── units │ │ │ └── systemd-zram-setup@zram0.service.d │ │ │ └── bindings.conf │ └── usr │ │ └── lib │ │ └── systemd │ │ └── zram-generator.conf ├── 06-kernel-enabled │ ├── proc │ │ ├── cmdline │ │ └── meminfo │ └── run.expected │ │ └── units │ │ ├── dev-zram0.swap │ │ ├── swap.target.wants │ │ └── dev-zram0.swap │ │ └── systemd-zram-setup@zram0.service.d │ │ └── bindings.conf ├── 07-mount-point │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf │ ├── proc │ │ └── meminfo │ └── run.expected │ │ └── units │ │ ├── -.mount │ │ ├── foo-bar-baz.mount │ │ ├── local-fs.target.wants │ │ ├── -.mount │ │ ├── foo-bar-baz.mount │ │ ├── var-compressed.mount │ │ └── var-folded.mount │ │ ├── systemd-zram-setup@zram11.service.d │ │ └── bindings.conf │ │ ├── systemd-zram-setup@zram12.service.d │ │ └── bindings.conf │ │ ├── systemd-zram-setup@zram13.service.d │ │ └── bindings.conf │ │ ├── systemd-zram-setup@zram15.service.d │ │ └── bindings.conf │ │ ├── var-compressed.mount │ │ └── var-folded.mount ├── 07a-mount-point-excl │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf │ ├── proc │ │ └── meminfo │ └── run.expected │ │ └── units │ │ ├── \x2e\xc5\xbcupan\x2dci3p\xc5\x82y.mount │ │ ├── local-fs.target.wants │ │ └── \x2e\xc5\xbcupan\x2dci3p\xc5\x82y.mount │ │ └── systemd-zram-setup@zram14.service.d │ │ └── bindings.conf ├── 08-plain-device │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf │ ├── proc │ │ ├── meminfo │ │ └── self │ │ │ └── mountinfo │ └── run.expected │ │ └── units │ │ └── .empty ├── 09-zram-size │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf │ ├── proc │ │ └── meminfo │ └── run.expected │ │ └── units │ │ ├── dev-zram0.swap │ │ ├── swap.target.wants │ │ └── dev-zram0.swap │ │ └── systemd-zram-setup@zram0.service.d │ │ └── bindings.conf ├── 10-example │ ├── bin │ │ └── xenstore-read │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf │ ├── proc │ │ └── meminfo │ └── run.expected │ │ └── units │ │ ├── dev-zram0.swap │ │ ├── local-fs.target.wants │ │ └── run-compressed\x2dmount\x2dpoint.mount │ │ ├── run-compressed\x2dmount\x2dpoint.mount │ │ ├── swap.target.wants │ │ └── dev-zram0.swap │ │ ├── systemd-zram-setup@zram0.service.d │ │ └── bindings.conf │ │ └── systemd-zram-setup@zram1.service.d │ │ └── bindings.conf ├── 11-obsolete │ ├── etc │ │ └── systemd │ │ │ └── zram-generator.conf │ ├── proc │ │ └── meminfo │ └── run.expected │ │ └── units │ │ ├── dev-zram0.swap │ │ ├── dev-zram1.swap │ │ ├── swap.target.wants │ │ ├── dev-zram0.swap │ │ └── dev-zram1.swap │ │ ├── systemd-zram-setup@zram0.service.d │ │ └── bindings.conf │ │ └── systemd-zram-setup@zram1.service.d │ │ └── bindings.conf ├── test-invocations.sh └── test_cases.rs ├── units ├── .gitignore ├── systemd-zram-setup@.service.d │ └── binary-location.conf └── systemd-zram-setup@.service.in └── zram-generator.conf.example /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | /Cargo.lock 3 | /target 4 | **/*.rs.bk 5 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/README.md -------------------------------------------------------------------------------- /man/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/man/.gitignore -------------------------------------------------------------------------------- /man/index.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/man/index.txt -------------------------------------------------------------------------------- /man/zram-generator.conf.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/man/zram-generator.conf.md -------------------------------------------------------------------------------- /man/zram-generator.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/man/zram-generator.md -------------------------------------------------------------------------------- /src/config.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/src/config.rs -------------------------------------------------------------------------------- /src/generator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/src/generator.rs -------------------------------------------------------------------------------- /src/kernlog.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/src/kernlog.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/setup.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/src/setup.rs -------------------------------------------------------------------------------- /tests/01-basic/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/01-basic/proc/meminfo -------------------------------------------------------------------------------- /tests/01-basic/run.expected/units/dev-zram0.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/01-basic/run.expected/units/dev-zram0.swap -------------------------------------------------------------------------------- /tests/01-basic/run.expected/units/swap.target.wants/dev-zram0.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram0.swap -------------------------------------------------------------------------------- /tests/01-basic/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/01-basic/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/01-basic/usr/lib/systemd/zram-generator.conf: -------------------------------------------------------------------------------- 1 | [zram0] 2 | -------------------------------------------------------------------------------- /tests/02-zstd/etc/systemd/zram-generator.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/02-zstd/etc/systemd/zram-generator.conf -------------------------------------------------------------------------------- /tests/02-zstd/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/02-zstd/proc/meminfo -------------------------------------------------------------------------------- /tests/02-zstd/run.expected/units/dev-zram0.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/02-zstd/run.expected/units/dev-zram0.swap -------------------------------------------------------------------------------- /tests/02-zstd/run.expected/units/swap.target.wants/dev-zram0.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram0.swap -------------------------------------------------------------------------------- /tests/02-zstd/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/02-zstd/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/03-too-much-memory/etc/systemd/zram-generator.conf: -------------------------------------------------------------------------------- 1 | [zram0] 2 | host-memory-limit=7824 3 | -------------------------------------------------------------------------------- /tests/03-too-much-memory/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/03-too-much-memory/proc/meminfo -------------------------------------------------------------------------------- /tests/03-too-much-memory/run.expected/units/.empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/04-dropins/etc/systemd/zram-generator.conf.d/03-drop3.conf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/04-dropins/etc/systemd/zram-generator.conf.d/04-drop4.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/04-dropins/etc/systemd/zram-generator.conf.d/04-drop4.conf -------------------------------------------------------------------------------- /tests/04-dropins/etc/systemd/zram-generator.conf.d/zram-generator.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/04-dropins/etc/systemd/zram-generator.conf.d/zram-generator.conf -------------------------------------------------------------------------------- /tests/04-dropins/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/04-dropins/proc/meminfo -------------------------------------------------------------------------------- /tests/04-dropins/run.expected/units/dev-zram0.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/04-dropins/run.expected/units/dev-zram0.swap -------------------------------------------------------------------------------- /tests/04-dropins/run.expected/units/dev-zram2.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/04-dropins/run.expected/units/dev-zram2.swap -------------------------------------------------------------------------------- /tests/04-dropins/run.expected/units/swap.target.wants/dev-zram0.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram0.swap -------------------------------------------------------------------------------- /tests/04-dropins/run.expected/units/swap.target.wants/dev-zram2.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram2.swap -------------------------------------------------------------------------------- /tests/04-dropins/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/04-dropins/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/04-dropins/run.expected/units/systemd-zram-setup@zram2.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/04-dropins/run.expected/units/systemd-zram-setup@zram2.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/04-dropins/usr/lib/systemd/zram-generator.conf: -------------------------------------------------------------------------------- 1 | [zram0] 2 | -------------------------------------------------------------------------------- /tests/04-dropins/usr/lib/systemd/zram-generator.conf.d/01-drop1.conf: -------------------------------------------------------------------------------- 1 | [zram0] 2 | host-memory-limit=1234 3 | -------------------------------------------------------------------------------- /tests/04-dropins/usr/lib/systemd/zram-generator.conf.d/02-drop2.conf: -------------------------------------------------------------------------------- 1 | [zram0] 2 | host-memory-limit=1235 3 | -------------------------------------------------------------------------------- /tests/04-dropins/usr/lib/systemd/zram-generator.conf.d/03-drop3.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/04-dropins/usr/lib/systemd/zram-generator.conf.d/03-drop3.conf -------------------------------------------------------------------------------- /tests/05-kernel-disabled/proc/cmdline: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/05-kernel-disabled/proc/cmdline -------------------------------------------------------------------------------- /tests/05-kernel-disabled/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/05-kernel-disabled/proc/meminfo -------------------------------------------------------------------------------- /tests/05-kernel-disabled/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/05-kernel-disabled/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/05-kernel-disabled/usr/lib/systemd/zram-generator.conf: -------------------------------------------------------------------------------- 1 | [zram0] 2 | -------------------------------------------------------------------------------- /tests/06-kernel-enabled/proc/cmdline: -------------------------------------------------------------------------------- 1 | 2 | 3 | systemd.zram 4 | 5 | -------------------------------------------------------------------------------- /tests/06-kernel-enabled/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/06-kernel-enabled/proc/meminfo -------------------------------------------------------------------------------- /tests/06-kernel-enabled/run.expected/units/dev-zram0.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/06-kernel-enabled/run.expected/units/dev-zram0.swap -------------------------------------------------------------------------------- /tests/06-kernel-enabled/run.expected/units/swap.target.wants/dev-zram0.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram0.swap -------------------------------------------------------------------------------- /tests/06-kernel-enabled/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/06-kernel-enabled/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/07-mount-point/etc/systemd/zram-generator.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/etc/systemd/zram-generator.conf -------------------------------------------------------------------------------- /tests/07-mount-point/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/proc/meminfo -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/-.mount: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/run.expected/units/-.mount -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/foo-bar-baz.mount: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/run.expected/units/foo-bar-baz.mount -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/local-fs.target.wants/-.mount: -------------------------------------------------------------------------------- 1 | ../-.mount -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/local-fs.target.wants/foo-bar-baz.mount: -------------------------------------------------------------------------------- 1 | ../foo-bar-baz.mount -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/local-fs.target.wants/var-compressed.mount: -------------------------------------------------------------------------------- 1 | ../var-compressed.mount -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/local-fs.target.wants/var-folded.mount: -------------------------------------------------------------------------------- 1 | ../var-folded.mount -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/systemd-zram-setup@zram11.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/run.expected/units/systemd-zram-setup@zram11.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/systemd-zram-setup@zram12.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/run.expected/units/systemd-zram-setup@zram12.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/systemd-zram-setup@zram13.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/run.expected/units/systemd-zram-setup@zram13.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/systemd-zram-setup@zram15.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/run.expected/units/systemd-zram-setup@zram15.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/var-compressed.mount: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/run.expected/units/var-compressed.mount -------------------------------------------------------------------------------- /tests/07-mount-point/run.expected/units/var-folded.mount: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07-mount-point/run.expected/units/var-folded.mount -------------------------------------------------------------------------------- /tests/07a-mount-point-excl/etc/systemd/zram-generator.conf: -------------------------------------------------------------------------------- 1 | [zram14] 2 | mount-point = /.żupan-ci3pły 3 | fs-type = ext4 4 | -------------------------------------------------------------------------------- /tests/07a-mount-point-excl/proc/meminfo: -------------------------------------------------------------------------------- 1 | ../../07-mount-point/proc/meminfo -------------------------------------------------------------------------------- /tests/07a-mount-point-excl/run.expected/units/\x2e\xc5\xbcupan\x2dci3p\xc5\x82y.mount: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07a-mount-point-excl/run.expected/units/\x2e\xc5\xbcupan\x2dci3p\xc5\x82y.mount -------------------------------------------------------------------------------- /tests/07a-mount-point-excl/run.expected/units/local-fs.target.wants/\x2e\xc5\xbcupan\x2dci3p\xc5\x82y.mount: -------------------------------------------------------------------------------- 1 | ../\x2e\xc5\xbcupan\x2dci3p\xc5\x82y.mount -------------------------------------------------------------------------------- /tests/07a-mount-point-excl/run.expected/units/systemd-zram-setup@zram14.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/07a-mount-point-excl/run.expected/units/systemd-zram-setup@zram14.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/08-plain-device/etc/systemd/zram-generator.conf: -------------------------------------------------------------------------------- 1 | [zram11] 2 | fs-type = ext2 3 | -------------------------------------------------------------------------------- /tests/08-plain-device/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/08-plain-device/proc/meminfo -------------------------------------------------------------------------------- /tests/08-plain-device/proc/self/mountinfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/08-plain-device/proc/self/mountinfo -------------------------------------------------------------------------------- /tests/08-plain-device/run.expected/units/.empty: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/09-zram-size/etc/systemd/zram-generator.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/09-zram-size/etc/systemd/zram-generator.conf -------------------------------------------------------------------------------- /tests/09-zram-size/proc/meminfo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/09-zram-size/proc/meminfo -------------------------------------------------------------------------------- /tests/09-zram-size/run.expected/units/dev-zram0.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/09-zram-size/run.expected/units/dev-zram0.swap -------------------------------------------------------------------------------- /tests/09-zram-size/run.expected/units/swap.target.wants/dev-zram0.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram0.swap -------------------------------------------------------------------------------- /tests/09-zram-size/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/09-zram-size/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/10-example/bin/xenstore-read: -------------------------------------------------------------------------------- 1 | #!/bin/sh -x 2 | echo '8 * 1024' # MB 3 | -------------------------------------------------------------------------------- /tests/10-example/etc/systemd/zram-generator.conf: -------------------------------------------------------------------------------- 1 | ../../../../zram-generator.conf.example -------------------------------------------------------------------------------- /tests/10-example/proc/meminfo: -------------------------------------------------------------------------------- 1 | ../../07-mount-point/proc/meminfo -------------------------------------------------------------------------------- /tests/10-example/run.expected/units/dev-zram0.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/10-example/run.expected/units/dev-zram0.swap -------------------------------------------------------------------------------- /tests/10-example/run.expected/units/local-fs.target.wants/run-compressed\x2dmount\x2dpoint.mount: -------------------------------------------------------------------------------- 1 | ../run-compressed\x2dmount\x2dpoint.mount -------------------------------------------------------------------------------- /tests/10-example/run.expected/units/run-compressed\x2dmount\x2dpoint.mount: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/10-example/run.expected/units/run-compressed\x2dmount\x2dpoint.mount -------------------------------------------------------------------------------- /tests/10-example/run.expected/units/swap.target.wants/dev-zram0.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram0.swap -------------------------------------------------------------------------------- /tests/10-example/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/10-example/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/10-example/run.expected/units/systemd-zram-setup@zram1.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/10-example/run.expected/units/systemd-zram-setup@zram1.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/11-obsolete/etc/systemd/zram-generator.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/11-obsolete/etc/systemd/zram-generator.conf -------------------------------------------------------------------------------- /tests/11-obsolete/proc/meminfo: -------------------------------------------------------------------------------- 1 | ../../07-mount-point/proc/meminfo -------------------------------------------------------------------------------- /tests/11-obsolete/run.expected/units/dev-zram0.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/11-obsolete/run.expected/units/dev-zram0.swap -------------------------------------------------------------------------------- /tests/11-obsolete/run.expected/units/dev-zram1.swap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/11-obsolete/run.expected/units/dev-zram1.swap -------------------------------------------------------------------------------- /tests/11-obsolete/run.expected/units/swap.target.wants/dev-zram0.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram0.swap -------------------------------------------------------------------------------- /tests/11-obsolete/run.expected/units/swap.target.wants/dev-zram1.swap: -------------------------------------------------------------------------------- 1 | ../dev-zram1.swap -------------------------------------------------------------------------------- /tests/11-obsolete/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/11-obsolete/run.expected/units/systemd-zram-setup@zram0.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/11-obsolete/run.expected/units/systemd-zram-setup@zram1.service.d/bindings.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/11-obsolete/run.expected/units/systemd-zram-setup@zram1.service.d/bindings.conf -------------------------------------------------------------------------------- /tests/test-invocations.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/test-invocations.sh -------------------------------------------------------------------------------- /tests/test_cases.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/tests/test_cases.rs -------------------------------------------------------------------------------- /units/.gitignore: -------------------------------------------------------------------------------- 1 | /systemd-zram-setup@.service 2 | -------------------------------------------------------------------------------- /units/systemd-zram-setup@.service.d/binary-location.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/units/systemd-zram-setup@.service.d/binary-location.conf -------------------------------------------------------------------------------- /units/systemd-zram-setup@.service.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/units/systemd-zram-setup@.service.in -------------------------------------------------------------------------------- /zram-generator.conf.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/systemd/zram-generator/HEAD/zram-generator.conf.example --------------------------------------------------------------------------------