Commit graph

35 commits

Author SHA1 Message Date
Imbus
1ca6f8dfdf Fix warning in musl related to ioctl
Ioctl's in musl take ints, while glibc take unsigned longs. When not
using glibc, default to casting the ioctl number to an int. Tests
passing.
2026-02-21 08:06:37 +01:00
Imbus
4b853f9c16 Spelling errors 2026-02-21 06:17:07 +01:00
Imbus
2e02a056cc Now also reports the size of the block device before asking to continue 2026-02-21 03:57:30 +01:00
Imbus
60e7179766 Fix forgotten assignment to last 2026-02-15 03:22:26 +01:00
Imbus
bf55c2d0a9 Performance: Update progress bar only when changed 2026-02-15 03:10:54 +01:00
Imbus
e038ab224d Simplify: fprintf -> printf 2026-02-15 02:45:12 +01:00
Imbus
f37e28c4ef Remove accidental inclusion of unfinished WI_FILE check 2026-02-09 14:44:42 +01:00
Imbus
d1d3b3cd45 Rename dev_name and filename to iname/oname in preparation for enabling file outputs 2026-02-09 14:42:28 +01:00
Imbus
9723924222 Use stylized name in help section 2026-02-09 13:53:46 +01:00
Imbus
734c1c10ec Use bitmasking to keep track of flags 2026-02-09 13:36:59 +01:00
Imbus
53239324ef Tell the user how much data will be written beforehand 2026-02-07 18:24:32 +01:00
Imbus
a1556ca383 Set (y/n) prompt to (y/N) to better reflect behaviour 2026-02-07 18:23:59 +01:00
Imbus
0a4626e7d1 Fix formatting when error occurs 2026-02-07 18:23:33 +01:00
Imbus
3bfbfd46fa Move noisy metadata info into help section 2026-02-07 17:36:29 +01:00
Imbus
c67c68615a Add noconfirm flag 2026-02-07 17:24:31 +01:00
Imbus
13e27bbcc1 Flush block device with ioctl before reading it back 2026-02-07 17:24:16 +01:00
Imbus
c08ee6a738 Guard for verify only 2026-02-07 17:23:27 +01:00
Imbus
19bf88b2e6 Block size set to 1MiB 2026-02-07 17:22:06 +01:00
Imbus
5277b78fd3 Prompt user before doing anything 2026-02-07 14:55:24 +01:00
Imbus
21f2420d42 Now includes a simple progress bar, percent only 2026-02-07 14:55:05 +01:00
Imbus
9e96ebaca0 Assertion on file descriptor write access 2026-02-07 14:54:25 +01:00
Imbus
804a6b1485 Include the file size in the write job struct for future reference in data rate and progress bar 2026-02-07 13:52:13 +01:00
Imbus
c11bdd7f47 Assert that the file size is above zero 2026-02-07 13:51:44 +01:00
Imbus
88a1a87ca6 Guard for block device name string starting with "/dev/" 2026-02-07 13:51:16 +01:00
Imbus
cf85ca788a Verification logic now verifies both by-block and crc32 2026-02-07 13:23:53 +01:00
Imbus
3d61eeb1ab Make block size a compile-time tunable 2026-02-07 13:22:05 +01:00
Imbus
1a73c5a248 Rename: BUFSIZE -> BLOCKSIZE 2026-02-07 13:06:52 +01:00
Imbus
fda25171b2 Include proper version string 2026-02-05 02:34:58 +01:00
Imbus
377bcb5642 Guard for when defs CR_YEAR and BLDDATE are not supplied 2026-02-05 00:16:06 +01:00
Imbus
1e82124264 While verifying, when reading the block device, read only as much as was read from the file. 2026-02-04 23:57:07 +01:00
Imbus
e69243180f Remove commented code 2026-02-04 23:49:42 +01:00
Imbus
dd1679c824 Convert wjob to a singleton of type write_job 2026-02-04 23:49:13 +01:00
Imbus
3e766afea3 Specify BSD-2 in copyright string 2026-02-04 23:48:54 +01:00
Imbus
08deed9f60 Remove unused buffer pointer 2026-02-04 23:23:11 +01:00
Imbus
77de1f5ac0 Initial 2026-02-04 22:59:39 +01:00