Source-Changes archive

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

CVS commit: [netbsd-10] src/sbin/blkdiscard



Module Name:    src
Committed By:   martin
Date:           Sat Feb  3 12:09:07 UTC 2024

Modified Files:
        src/sbin/blkdiscard [netbsd-10]: blkdiscard.8 blkdiscard.c

Log Message:
Pull up following revision(s) (requested by mrg in ticket #565):

        sbin/blkdiscard/blkdiscard.c: revision 1.2
        sbin/blkdiscard/blkdiscard.c: revision 1.3
        sbin/blkdiscard/blkdiscard.8: revision 1.3

determine the tty width instead off writing 100 chars before a new line.

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.2.2.1 src/sbin/blkdiscard/blkdiscard.8
cvs rdiff -u -r1.1 -r1.1.2.1 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