summaryrefslogtreecommitdiffstats
path: root/util.c
Commit message (Expand)AuthorAgeFilesLines
* Dont replace holes in sparse files with non-0 bytes when creating flashHudson Ayers2023-09-051-1/+1
* make insert_data take an "unsigned long long" offsetRasmus Villemoes2023-02-081-1/+1
* fix building without fallocate()Michael Olbrich2022-12-161-5/+5
* make Linux specific headers optionalMichael Olbrich2022-11-111-1/+11
* util: simplify systemp()Michael Olbrich2022-11-111-6/+4
* util: create new helper to initialize an imageMichael Olbrich2022-03-251-0/+39
* image-hd.c: use size of destination block device as image sizeRasmus Villemoes2022-01-071-0/+32
* Merge pull request #170 from michaelolbrich/holeMichael Olbrich2021-11-121-0/+33
|\
| * allow specifying 'holes' in the partition sectionMichael Olbrich2021-10-221-0/+33
* | util: Fix warn_unused_result build warningsBin Meng2021-10-231-6/+6
|/
* util: systemp(): don't use shell defined in SHELL, but GENIMAGE_SHELLMarc Kleine-Budde2021-08-181-1/+1
* util: systemp(): use shell defined in SHELL rather than /bin/shMarc Kleine-Budde2021-07-091-1/+6
* util: remove unused pad_file functionMichael Olbrich2021-06-041-157/+0
* util: insert_image: allow specifying the fill valueMichael Olbrich2021-06-041-17/+19
* insert_image: fix read/write loopMichael Olbrich2021-04-251-3/+6
* util.c: add insert_image() helperRasmus Villemoes2021-04-211-0/+167
* Merge pull request #139 from OsterlaD/rauc-intermediateMichael Olbrich2021-04-091-0/+17
|\
| * util: add save string concat with formated stringDenis Osterland-Heim2021-02-251-0/+17
* | change insert_data() to take const void* instead of const char*Rasmus Villemoes2021-03-261-1/+2
* | util: strtoul_suffix: allow s suffix for sector size (512 bytes)Rasmus Villemoes2021-03-261-0/+5
|/
* util: export some more functionsMichael Olbrich2021-01-121-13/+3
* util: introduce and use xreallocMichael Olbrich2020-11-271-1/+13
* pad_file: fix memory leakUlrich Ölmann2020-11-271-1/+2
* map_file_extents: explicitely use output of ioctlUlrich Ölmann2020-11-271-3/+3
* map_file_extents: fix use after freeUlrich Ölmann2020-11-271-1/+2
* util: add fiemap fallback for errno ENOTTYPeter Seiderer2020-08-171-1/+1
* Merge pull request #106 from TobleMiner/fix-handling-of-emtpy-filesMichael Olbrich2020-04-171-1/+1
|\
| * util: fix segfault in map_file_extents for effectively zero size filesTobias Schramm2020-04-171-1/+1
* | util: pad_file: always use the full image size for the size argumentMichael Olbrich2020-04-171-8/+7
|/
* util: define AT_NO_AUTOMOUNT if neededPierre-Jean Texier2020-02-101-0/+4
* dir_size: close fd and dir when no longer usedHerve Codina2019-10-021-0/+3
* extend_file: use ftruncate() to resize the imageMichael Olbrich2019-09-221-9/+3
* pad_file: propagate errno correctlyMichael Olbrich2019-09-221-0/+1
* pad_file: cleanup loggingMichael Olbrich2019-09-221-1/+4
* pad_file: avoid uninitialized warningMichael Olbrich2019-09-221-1/+1
* map_file_extents: avoid theoretical race conditionMichael Olbrich2019-09-221-2/+2
* use tabs instead of spacesMichael Olbrich2019-09-221-2/+2
* Merge pull request #73 from michaelolbrich/emptyMichael Olbrich2019-09-221-0/+2
|\
| * make it easier to create empty filesystemsMichael Olbrich2019-09-221-0/+2
* | Merge branch 'master' into sparseMichael Olbrich2019-09-221-3/+106
|\|
| * Merge pull request #62 from michaelolbrich/hd-fillMichael Olbrich2019-05-111-0/+43
| |\
| | * util: add helper to extend images to a specified sizeMichael Olbrich2019-05-071-0/+43
| * | Merge pull request #61 from michaelolbrich/fixMichael Olbrich2019-05-111-1/+1
| |\ \
| | * | pad_file: fix copy/paste error in an error messageMichael Olbrich2019-05-071-1/+1
| | |/
| * | util: add helper to calculate directory sizeMichael Olbrich2019-05-061-0/+50
| * | config: allow parsing percentagesMichael Olbrich2019-05-061-2/+12
| |/
* / pad_file: Write sparse filesStefan Sørensen2019-03-111-30/+128
|/
* image-hd: re-read partition table for block devicesMichael Olbrich2019-03-011-0/+24
* pad_file/insert_data: support writing to block devicesMichael Olbrich2019-03-011-17/+72
* pad_file: use the imageoutfile()Michael Olbrich2019-03-011-1/+2