Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2019 06:25:28 +0000 (UTC)
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r516288 - in head/sysutils/bsdisks: . files
Message-ID:  <201911020625.xA26PSns072222@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911020625.xA26PSns072222>