summaryrefslogtreecommitdiff
path: root/source/a/util-linux/util-linux.do.not.list.ram.devices.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/util-linux/util-linux.do.not.list.ram.devices.diff')
-rw-r--r--source/a/util-linux/util-linux.do.not.list.ram.devices.diff13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/a/util-linux/util-linux.do.not.list.ram.devices.diff b/source/a/util-linux/util-linux.do.not.list.ram.devices.diff
new file mode 100644
index 00000000..33a74307
--- /dev/null
+++ b/source/a/util-linux/util-linux.do.not.list.ram.devices.diff
@@ -0,0 +1,13 @@
+--- ./disk-utils/fdisk-list.c.orig 2018-09-20 07:38:55.845404951 -0500
++++ ./disk-utils/fdisk-list.c 2019-01-02 15:53:21.256868721 -0600
+@@ -337,6 +337,10 @@
+ if (devno <= 0)
+ continue;
+
++ /* Don't list /dev/ram* devices */
++ if (strstr(line, "ram") && devno >= 256)
++ continue;
++
+ if (sysfs_devno_is_dm_private(devno, NULL) ||
+ sysfs_devno_is_wholedisk(devno) <= 0)
+ continue;