8000 Is zram0 governed by a file system? · util-linux util-linux · Discussion #3193 · GitHub
[go: up one dir, main page]

Skip to content

Is zram0 governed by a file system? #3193

Closed Answered by karelzak
Ricky-Tigg asked this question in Q&A
Discussion options

You must be logged in to vote

By default, lsblk reads data from udevd. However, udevd does not collect file system-related information from zrams. This can be seen in the output of udevadm info --export /dev/zram0, where there are no ID_FS_* variables present.

According to the rules in https://github.com/systemd/systemd/blob/main/rules.d/60-persistent-storage.rules.in, zram is not included in the list of allowed devices for KERNEL!=.

In the current git tree, lsblk can be forced to read data directly from the device using libblkid. In this case, all properties are retrieved.

sudo ./lsblk --fs --properties-by blkid /dev/zram0
NAME  FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
zram0 …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Ricky-Tigg
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0