I have a module that needs to get a list of device numbers of mounted partitions. Module will never be compiled into the kernel.
All of the lists seems (like superblock list) to be out of reach.
I could read info from the files but I believe you could have a kernel that does not create/update /proc/mounts, /proc/partitions or /etc/mtab. So I prefer not to read these files
I tried to read /proc/mounts using filp_open but then vfs_read returns EPIPE. Anyone know why? Same code works with /ect/mtab just fine
Thanks for any suggestions!