svn commit: r516288 - in head/sysutils/bsdisks: . files
Gleb Popov
arrowd at FreeBSD.org
Sat Nov 2 06:25:28 UTC 2019
Author: arrowd
Date: Sat Nov 2 06:25:27 2019
New Revision: 516288
URL: https://svnweb.freebsd.org/changeset/ports/516288
Log:
sysutils/bsdisks: Add a patch to handle NVMe drives properly.
PR: 241645
Submitted by: cmt
Added:
head/sysutils/bsdisks/files/
head/sysutils/bsdisks/files/patch-camcontrol.c (contents, props changed)
Modified:
head/sysutils/bsdisks/Makefile
Modified: head/sysutils/bsdisks/Makefile
==============================================================================
--- head/sysutils/bsdisks/Makefile Sat Nov 2 06:25:16 2019 (r516287)
+++ head/sysutils/bsdisks/Makefile Sat Nov 2 06:25:27 2019 (r516288)
@@ -2,6 +2,7 @@
PORTNAME= bsdisks
DISTVERSION= 0.9
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://bitbucket.org/arrowd/bsdisks/downloads/
Added: head/sysutils/bsdisks/files/patch-camcontrol.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/bsdisks/files/patch-camcontrol.c Sat Nov 2 06:25:27 2019 (r516288)
@@ -0,0 +1,16 @@
+--- camcontrol.c.orig 2019-09-08 10:38:26 UTC
++++ camcontrol.c
+@@ -166,9 +166,11 @@ int cam_is_removable(const char* device_path)
+ int timeout = 0, retry_count = 1;
+ int unit = 0;
+
+- if (cam_get_device(device_path, name, sizeof name, &unit)
+- == -1)
++ if (cam_get_device(device_path, name, sizeof name, &unit) == -1)
++ {
+ errx(1, "%s", cam_errbuf);
++ return (-1);
++ }
+
+ if ((cam_dev = cam_open_spec_device(device,unit,O_RDWR,NULL))
+ == NULL)
More information about the svn-ports-all
mailing list