summaryrefslogtreecommitdiffstats
path: root/source/a/util-linux/util-linux.do.not.list.ram.devices.diff
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2019-01-02 23:26:53 +0000
committer Eric Hameleers <alien@slackware.com>2019-01-03 08:59:43 +0100
commitb66dbcf50c5c89b5d222a9da91ffa5e6b9592891 (patch)
tree02597da8f955c6cf683eecedc163fba45998bb5b /source/a/util-linux/util-linux.do.not.list.ram.devices.diff
parenteec4d4261607e9d68560089406d11eec060421e9 (diff)
downloadcurrent-b66dbcf50c5c89b5d222a9da91ffa5e6b9592891.tar.gz
current-b66dbcf50c5c89b5d222a9da91ffa5e6b9592891.tar.xz
Wed Jan 2 23:26:53 UTC 201920190102232653
a/tar-1.31-x86_64-1.txz: Upgraded. a/util-linux-2.33-x86_64-2.txz: Rebuilt. fdisk: Don't include /dev/ram* devices in 'fdisk -l' output. ap/soma-3.2.1-noarch-1.txz: Upgraded. d/ccache-3.5.1-x86_64-1.txz: Upgraded. l/imagemagick-6.9.10_23-x86_64-1.txz: Upgraded. xap/gnuplot-5.2.6-x86_64-1.txz: Upgraded. xap/rdesktop-1.8.4-x86_64-1.txz: Upgraded.
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 000000000..33a743076
--- /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;