The NetBSD Project

CVS log for src/sbin/blkdiscard/blkdiscard.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / blkdiscard

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Feb 8 20:51:24 2024 UTC (9 months, 3 weeks ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2 lines
fix misplaced or missing "e" in words with "ment" ending (argument, implement,
increment, decrement, alignment), in comments, documentation, log messages.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 3 12:09:06 2024 UTC (10 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +22 -17 lines
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.)

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Jan 25 02:42:17 2024 UTC (10 months, 1 week ago) by mrg
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +11 -14 lines
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.)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Jan 25 02:06:56 2024 UTC (10 months, 1 week ago) by mrg
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +12 -4 lines
determine the tty width instead off writing 100 chars before a new line.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Feb 7 09:33:26 2022 UTC (2 years, 9 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Branch point for: netbsd-10
convert my fdiscard-stuff.c into blkdiscard.c and give it a UI
that matches the linux-util version.

comes in two forms:  blkdiscard equivalent, and the (almost)
original interface i used (the "-s" option is conflicting and
i've switched to only the not yet implemented secure erase
option.)  the only real difference is that "fdiscard" mode
requires the -R flag to do something, vs blkdiscard needs the
-n flag to not do anything.


not yet hooked into the build or sets.  would like more testing
on it to be performed before doing that (but soon.)

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>