Commit graph

63 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
d90c05ca77 Tests: test.sh does not use sudo internally, now runs under alpine with musl 2026-02-21 08:05:09 +01:00
Imbus
8601db8811 Initial bash completion 2026-02-21 07:24:25 +01:00
Imbus
4b853f9c16 Spelling errors 2026-02-21 06:17:07 +01:00
Imbus
febcedc2f3 Provide a more descriptive introduction and a summary of writeimg's features 2026-02-21 06:11:40 +01:00
Imbus
5e9245f059 Bump the help section in the readme to latest version 2026-02-21 06:05:02 +01:00
Imbus
d02fc5f386 Provide a detailed description of design considerations and future plans 2026-02-21 06:03:41 +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
c1e38b365c Uninstall target, PHONY 2026-02-14 16:02:47 +01:00
Imbus
d0728a87c0 Manpage permissions to 644 2026-02-14 15:55:35 +01:00
Imbus
71ef502cea Include manpage in 'make install' 2026-02-13 17:33:43 +01:00
Imbus
a62728e9db Initial manpage 2026-02-13 17:30:42 +01:00
Imbus
f37e28c4ef Remove accidental inclusion of unfinished WI_FILE check 2026-02-09 14:44:42 +01:00
Imbus
4127ad6333 More tests
Include some notes about cleanup and accidentally deleting loop-control
2026-02-09 14:42:56 +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
36a98b2630 Simple test 2026-02-09 13:59:10 +01:00
Imbus
9723924222 Use stylized name in help section 2026-02-09 13:53:46 +01:00
Imbus
d0a3db77e9 Remove commented CFLAGS appends for libudev 2026-02-09 13:53:26 +01:00
Imbus
078ba792f0 Get version string from git, instead of hardcoded in makefile 2026-02-09 13:52:57 +01:00
Imbus
734c1c10ec Use bitmasking to keep track of flags 2026-02-09 13:36:59 +01:00
Imbus
117d01fcbe v0.2.1 bump 2026-02-07 18:52:56 +01:00
Imbus
692f89d6c2 Formatting 2026-02-07 18:44:40 +01:00
Imbus
5cbfc38e62 Add some introduction to readme and brush up the formatting 2026-02-07 18:42:38 +01:00
Imbus
008e9e7ca9 Readme txt -> md 2026-02-07 18:39:18 +01:00
Imbus
9d2645ad65 Readme 2026-02-07 18:38:48 +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
ab43512e42 Bump to v0.2.0 2026-02-07 17:36:37 +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
824f975510 Include EXTRA_CFLAGS for optional extras 2026-02-07 17:21:48 +01:00
Imbus
be2f00b91c Clang-format 2026-02-07 17:20:00 +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
2c2fcd6c8e Bring in single-header crc32 2026-02-07 13:22:29 +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
8a715e07fe Pass LDFLAGS, even if empty 2026-02-05 03:31:34 +01:00