NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/57856 CVS commit: src/sbin/blkdiscard



The following reply was made to PR bin/57856; it has been noted by GNATS.

From: "matthew green" <mrg%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/57856 CVS commit: src/sbin/blkdiscard
Date: Thu, 25 Jan 2024 02:42:18 +0000

 Module Name:	src
 Committed By:	mrg
 Date:		Thu Jan 25 02:42:17 UTC 2024
 
 Modified Files:
 	src/sbin/blkdiscard: blkdiscard.8 blkdiscard.c
 
 Log Message:
 blkdiscard: avoid asserting when passed a bsd disklabel raw device
 
 PR#57856 shows when using blkdiscard on eg, /dev/ld0 it asserts because
 '0' is not between 'a' and 'p'.  switch this to using DISKPART() on the
 returned st_rdev, so it works on 'ld0c' or 'ld0' (rawpart=2.)
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/sbin/blkdiscard/blkdiscard.8 \
     src/sbin/blkdiscard/blkdiscard.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index