forked from openwrt/make_ext4fs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
493 lines (408 loc) · 13.8 KB
/
ChangeLog
File metadata and controls
493 lines (408 loc) · 13.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
2025-09-16 Eric Herman <eric@freesa.org>
extract the string checking function to check-util
* Makefile: support check-util
* tests/check-util.c: implement null-safe check_str
* tests/check-util.h: null-safe Check_str macro
* tests/test-check-util.c: testing check-util itself
* tests/test-uuid5-generate.c: use Check_str
* tests/test-uuid5.c: use Check_str
2025-09-11 Eric Herman <eric@freesa.org>
Makefile: add check-has-sudo before calling scripts which require sudo
and add targets "debug", "check-build-unit", and "coverage-report".
Honour the order of argumetns to calloc:
calloc(number_of_elements, size_of_element);
uuid5: add ability to be strict (UUID) or lax (char *) with namespaces
* Makefile: targets: check-has-sudo, coverage-report; tidy:CHAR64LONG16
and support unit tests
* src/allocate.c: calloc
* src/ext4_utils.c: calloc
* src/extent.c: calloc
* src/indirect.c: calloc
* src/libsparse/backed_block.c: calloc
* src/libsparse/output_file.c: calloc
* src/libsparse/sparse.c: calloc
* src/libsparse/sparse_read.c: calloc
* src/make_ext4fs.c: calloc
* src/sha1.c: white-space tidy, CHAR64LONG16 is a type
* src/uuid5.c: add ability to be strict or lax with namespaces
* src/uuid5.h: add ability to be strict or lax with namespaces
* tests/build-and-test.sh: support coverage target
* tests/test-uuid5-generate.c: new file, first unit test!
* tests/test-uuid5.c: new file, unit test
* README.md: code coverage moved from Roadmap to Noteworthy changes
* .gitignore: add default ./build dir
2025-09-10 Eric Herman <eric@freesa.org>
Freeing backing buffers of sparse files are the responsibility of
the caller. As such, a reference must be held in order to free them.
Add linked list structure for tracking pointers and their sizes.
Makefile simplification: no sense in having the sparse object files in
their own directory as we are not treating it like a sub-module.
Include consistency: use double quotes, not angle-brackets for sparse.
* src/allocate.c: add vps_list_add(), vps_list_free()
* src/allocate.h: add struct vps_list, vps_list_add(), vps_list_free()
* src/contents.c: long_life_bufs param added to functions
* src/contents.h: long_life_bufs param added to functions
* src/ext4_utils.c: ext4_queue_sb(): backing buf added to long_life_bufs
* src/ext4_utils.h: long_life_bufs param added to functions
* src/extent.c: extent_create_backing() backing buf added to long_lifes
* src/extent.h: long_life_bufs param added to functions
* src/indirect.c: inode_attach_resize() add block_data to long_life_bufs
* src/indirect.h: long_life_bufs param added to functions
* src/libsparse/output_file.h: include consistency
* src/libsparse/sparse.c: include consistency
* src/libsparse/sparse_err.c: include consistency
* src/libsparse/sparse_read.c: include consistency
* src/make_ext4fs.c: add vps_list long_life_bufs
* README.md: Roadmap: remove "add valgrind" (done)
* misc/workaround-indent-bug-65165.patch: update
* Makefile: single list of .o files
2025-09-08 Eric Herman <eric@freesa.org>
Elevate leak visibility with Valgrind
* src/allocate.c: add free_alloc_all, free the strdup-ed filename
* src/allocate.h: add free_alloc_all
* src/contents.c: adjust the saved_allocation_head from the caller
* src/contents.h: pass in reference to pointer
* src/ext4_utils.h: make_ext4fs_internal() reduce param list
* src/libsparse/output_file.c: output_file_close now frees its buffers
* src/make_ext4fs.c: fix leaks, _internal() now creates and frees more
* src/make_ext4fs_main.c: make_ext4fs_internal() reduce param list
* Makefile: CFLAGS add -g -Wall -Wextra
* tests/build-and-test.sh: use valgrind if available
2024-08-06 Eric Herman <eric@freesa.org>
Guard against some malloc()/calloc() failures
Add a "make tidy" target based upon Linux kernel coding
https://github.com/torvalds/linux/blob/master/scripts/Lindent
* Makefile: add "tidy" target using "Lindent"
* misc/workaround-indent-bug-65165.patch: add indent patch
* src/allocate.c: error if malloc() returns NULL
* src/allocate.h: add jmp_buf to functions
* src/ext4_utils.c: error if malloc() returns NULL
* src/ext4_utils.h: add jmp_buf to functions
* src/extent.c: error if malloc() returns NULL
* src/indirect.c: error if malloc() returns NULL
* src/make_ext4fs.c: error if malloc() returns NULL
* src/libsparse/backed_block.c: early return NULL, if malloc() fails
* src/canned_fs_config.c
* src/canned_fs_config.h
* src/contents.c
* src/crc16.c
* src/ext4.h
* src/ext4_extents.h
* src/ext4_sb.c
* src/ext4_sb.h
* src/ext4fixup.c
* src/extent.h
* src/include/private/android_filesystem_capability.h
* src/jbd2.h
* src/libsparse/backed_block.h
* src/libsparse/include/sparse/sparse.h
* src/libsparse/output_file.c
* src/libsparse/output_file.h
* src/libsparse/sparse.c
* src/libsparse/sparse_crc32.c
* src/libsparse/sparse_crc32.h
* src/libsparse/sparse_file.h
* src/libsparse/sparse_format.h
* src/libsparse/sparse_read.c
* src/make_ext4fs_main.c
* src/sha1.c
* src/sha1.h
* src/wipe.c
* src/wipe.h
* src/xattr.h
* README.md: Roadmap: add memory leak checking
2024-08-05 Eric Herman <eric@freesa.org>
Replace globals with stack variables.
Add a README.md
split NOTICE into NOTICE and LICENSE
remove MODULE_LICENSE_APACHE2 (empty marker file from AOSP tooling)
* README.md: added
* NOTICE: split into NOTICE and LICENSE
* LICENSE: Just the text of Apache v2.0 (copyright Apache, not the AOSP)
* MODULE_LICENSE_APACHE2: deleted
* src/ext4_utils.c: removed globals: force, info, aux_info,
ext4_sparse_file, uuid_user_specified,
setjmp_env
* src/canned_fs_config.c: removed globals: canned_data, canned_alloc,
canned_used
* src/contents.c: removed global: saved_allocation_head
* src/ext4fixup.c: removed globals: verbose, no_write,
no_write_fixup_state, new_inodes_per_group
* src/libsparse/sparse_read.c: removed global: copybuf,
fixed memory leak (free(buf) missing)
* src/make_ext4fs_main.c: (most) former globals now created here
* src/allocate.h
* src/canned_fs_config.h
* src/contents.h
* src/ext4fixup.h
* src/ext4_utils.h
* src/extent.h
* src/indirect.h
* src/libsparse/include/sparse/sparse.h
* src/allocate.c
* src/extent.c
* src/indirect.c
* src/make_ext4fs.c
2024-08-04 Eric Herman <eric@freesa.org>
move libsparse and android_filesystem_capability.h into src/
make sparse includes quotes (not brackets)
* Makefile: includes, file moves
* src/allocate.c: includes
* src/ext4fixup.c: includes
* src/ext4_utils.c: includes
* src/make_ext4fs_main.c: includes
* src/include/private/android_filesystem_capability.h: moved
* src/libsparse/backed_block.c: moved
* src/libsparse/backed_block.h: moved
* src/libsparse/defs.h: moved
* src/libsparse/include/sparse/sparse.h: moved
* src/libsparse/output_file.c: moved
* src/libsparse/output_file.h: moved
* src/libsparse/sparse.c: moved
* src/libsparse/sparse_crc32.c: moved
* src/libsparse/sparse_crc32.h: moved
* src/libsparse/sparse_defs.h: moved
* src/libsparse/sparse_err.c: moved
* src/libsparse/sparse_file.h: moved
* src/libsparse/sparse_format.h: moved
* src/libsparse/sparse_read.c:moved
* libsparse/Makefile: deleted
2024-07-25 Eric Herman <eric@freesa.org>
added licenses to makefiles
moved top-level source files to src/
moved top-level test file to tests/
default the build/ directory
* Makefile: add license, BUILD_DIR ?= ./build
* libsparse/Makefile: add license, BUILD_DIR ?= ../build
* build-and-test.sh: move to tests/ add license comment
* ChangeLog: added
* .gitignore: updated
* allocate.c: moved to src/allocate.c
* allocate.h: moved to src/allocate.h
* canned_fs_config.c: moved to src/canned_fs_config.c
* canned_fs_config.h: moved to src/canned_fs_config.h
* contents.c: moved to src/contents.c
* contents.h: moved to src/contents.h
* crc16.c: moved to src/crc16.c
* ext4.h: moved to src/ext4.h
* ext4_extents.h: moved to src/ext4_extents.h
* ext4_kernel_headers.h: moved to src/ext4_kernel_headers.h
* ext4_sb.c: moved to src/ext4_sb.c
* ext4_sb.h: moved to src/ext4_sb.h
* ext4_utils.c: moved to src/ext4_utils.c
* ext4_utils.h: moved to src/ext4_utils.h
* ext4fixup.c: moved to src/ext4fixup.c
* ext4fixup.h: moved to src/ext4fixup.h
* extent.c: moved to src/extent.c
* extent.h: moved to src/extent.h
* indirect.c: moved to src/indirect.c
* indirect.h: moved to src/indirect.h
* jbd2.h: moved to src/jbd2.h
* make_ext4fs.c: moved to src/make_ext4fs.c
* make_ext4fs_main.c: moved to src/make_ext4fs_main.c
* sha1.c: moved to src/sha1.c
* sha1.h: moved to src/sha1.h
* uuid5.c: moved to src/uuid5.c
* uuid5.h: moved to src/uuid5.h
* wipe.c: moved to src/wipe.c
* wipe.h: moved to src/wipe.h
* xattr.h: moved to src/xattr.h
2024-07-20 Eric Herman <eric@freesa.org>
Align uuid v5 generation with rfc9562
support using a file (in addition to device) for target
move file truncation until after file size check
support BUILD_DIR
fix declare-but-not-used warnings
add a .gitignore
Makefile: add "check" target
rename uuid.h,uuid.c to uuid5.h, uuid5.c
* make_ext4fs_main.c: remove file truncation on open
* make_ext4fs.c: file truncation after getting file size
* build-and-test.sh: support BUILD_DIR, file or device
* Makefile: add a "check" for both file/device, BUILD_DIR, whitespace
* libsparse/Makefile: BUILD_DIR
* canned_fs_config.c: fix unused warning
* make_ext4fs.c: fix unused warning
* uuid.h: rename to uuid5.h
* uuid.c: Align with rfc9562, rename to uuid5.c
* build-and-test.sh: called from "make check"
* .gitignore: added
2024-05-06 Eric Herman <eric@freesa.org>
make_ext4fs: add command-line -u option for UUID
* ext4_utils.h: parsing functions
* make_ext4fs_main.c: commandline parsing
* ext4_sb.c:
* make_ext4fs.c
* ext4_sb.h
* ext4_utils.c
2020-01-05 Hauke Mehrtens <hauke@hauke-m.de>
Add LDFLAGS when building libsparse.a
* Makefile
2019-12-06 Johannes Kimmel <freifunk@mail.bareminimum.eu>
make_ext4fs: fix build on musl systems
* ext4_utils.h
2017-05-20 Rosen Penev <rosenp@gmail.com>
make_ext4: Add strict prototypes.
* contents.h
* extent.h
* indirect.h
* allocate.h
* make_ext4fs.c
* contents.c
2017-04-08 Rosen Penev <rosenp@gmail.com>
make_ext4fs: Remove off64_t in favor of standard off_t
* ext4_utils.h
* ext4_utils.c
* libsparse/sparse_read.c
* ext4fixup.c
* libsparse/output_file.c
* extent.c
2016-08-14 Jo-Philipp Wich <jo@mein.io>
Allow creating empty filesystem images
* make_ext4fs.c
2016-05-05 Felix Fietkau <nbd@nbd.name>
Only include sys/sysmacros.h on glibc, it is not portable
* ext4_utils.h
2016-04-25 Jo-Philipp Wich <jo@mein.io>
Include sys/sysmacros.h explicitely.
* ext4_utils.h
2015-12-02 Wojtek Porczyk <woju@invisiblethingslab.com>
make_ext4fs: explicitly call setlocale() before creating image
* make_ext4fs.c
2015-09-14 Jo-Philipp Wich <jow@openwrt.org>
Add option to link zlib statically
* Makefile
2015-04-29 Imre Kaloz <kaloz@openwrt.org>
avoid using libc's internal sys/cdefs.h
* sha1.c
* sha1.h
2015-04-08 Jo-Philipp Wich <jow@openwrt.org>
Allow specifying reserved blocks percentage
Remove MinGW support code
Remove unused functions
Remove unused mountpoint support
* contents.c
* ext4_sb.h
* ext4_utils.c
* ext4_utils.h
* ext4fixup.c
* libsparse/output_file.c
* libsparse/sparse_read.c
* make_ext4fs.c
* make_ext4fs.h
* make_ext4fs_main.c
* sha1.c
* sha1.h
* uuid.c
2015-04-04 Jo-Philipp Wich <jow@openwrt.org>
Implement support for block and char dev nodes, fifos and sockets.
Add required Android includes
Fix fs configuration support
Support comments in fs config
Support tabs as seaprators when parsing fs config
Add toplevel Makefile
libsparse: add Makefile
Remove Android specific code paths
Remove selinux code
Remove references to O_BINARY
Remove unused files
* Android.mk
* Makefile
* canned_fs_config.c
* canned_fs_config.h
* contents.c
* contents.h
* e4crypt_static.c
* ext2simg.c
* ext4_crypt.cpp
* ext4_crypt.h
* ext4_crypt_init_extensions.cpp
* ext4_utils.h
* ext4fixup_main.c
* include/private/android_filesystem_capability.h
* include/private/android_filesystem_config.h
* libsparse/Android.mk
* libsparse/Makefile
* libsparse/append2simg.c
* libsparse/img2simg.c
* libsparse/output_file.c
* libsparse/simg2img.c
* libsparse/simg2simg.c
* libsparse/simg_dump.py
* make_ext4fs.c
* make_ext4fs.h
* make_ext4fs_main.c
* mkuserimg.sh
* setup_fs.c
* test_ext4fixup
* unencrypted_properties.cpp
* unencrypted_properties.h
2015-04-04 Jo-Philipp Wich <jow@openwrt.org>
Import libsparse sources
* libsparse/simg2img.c
* libsparse/simg_dump.py
* libsparse/defs.h
* libsparse/backed_block.c
* libsparse/Android.mk
* libsparse/img2simg.c
* libsparse/sparse_err.c
* libsparse/sparse_crc32.h
* libsparse/output_file.h
* libsparse/sparse_format.h
* libsparse/backed_block.h
* libsparse/sparse_file.h
* libsparse/sparse_read.c
* libsparse/simg2simg.c
* libsparse/append2simg.c
* libsparse/sparse_defs.h
* libsparse/sparse_crc32.c
* libsparse/sparse.c
* libsparse/output_file.c
* libsparse/include/sparse/sparse.h
2015-04-04 Jo-Philipp Wich <jow@openwrt.org>
Import make_ext4fs sources
* make_ext4fs.c
* ext4_crypt.h
* contents.h
* make_ext4fs.h
* ext4fixup_main.c
* unencrypted_properties.h
* ext4_utils.c
* make_ext4fs_main.c
* indirect.c
* ext4_utils.h
* ext4.h
* ext4_kernel_headers.h
* e4crypt_static.c
* indirect.h
* extent.c
* uuid.c
* test_ext4fixup
* extent.h
* uuid.h
* crc16.c
* ext4_crypt.cpp
* Android.mk
* setup_fs.c
* NOTICE
* unencrypted_properties.cpp
* ext4_sb.c
* ext4_extents.h
* ext4_sb.h
* ext2simg.c
* xattr.h
* wipe.c
* wipe.h
* ext4_crypt_init_extensions.cpp
* allocate.c
* mkuserimg.sh
* sha1.c
* allocate.h
* canned_fs_config.c
* sha1.h
* canned_fs_config.h
* ext4fixup.c
* jbd2.h
* ext4fixup.h
* MODULE_LICENSE_APACHE2
* contents.c