21 Commits (779542a5d11eb8cac4b3116cfad9f3ffbadbae89)

Author SHA1 Message Date
Adriaan de Groot fc99824c8d [fsresizer] Fix string error, thanks Lithuanian translators 7 years ago
Adriaan de Groot 21fedfce65 [fsresizer] Calamares oding style 7 years ago
Adriaan de Groot 39902d1c3f [fsresizer] "can not" -> "cannot" 7 years ago
Adriaan de Groot eb7c6385cd [fsresizer] Bail out if resize required but not feasible 7 years ago
Adriaan de Groot 0b4c0f9c38 [fsresizer] Add setting required
- If resize is required, fail if it doesn't happen.
7 years ago
Adriaan de Groot ed841d1674 [fsresizer] Typo 7 years ago
Adriaan de Groot aaf27ac2ab [fsresizer] Apply sizes properly
- Distinguish size and atleast; in percentages they mean different
   things (atleast is a bit weird as a percentage, but hey).
 - Fix bug in percentage calculation.
 - Avoid percentage above 100.
 - Add documentation in config-file.
7 years ago
Adriaan de Groot c725f6b552 [fsresizer] Distinguish error from no-useful-resize 7 years ago
Adriaan de Groot 5dc11b223a [fsresizer] Do the resize itself
- handle weird partition tables
 - ignore unallocated space -- that's what we want to expand into
 - use ResizeOperation for the actual work
7 years ago
Adriaan de Groot 14b6755714 [fsresizer] Initialize harder 7 years ago
Adriaan de Groot e627633c44 [fsresizer] initialize FS support 7 years ago
Adriaan de Groot 2556891e39 [fsresizer] Fix backwards logic in error message 7 years ago
Adriaan de Groot 9124281bcb [fsresizer] Calculate resize parameters
- apply() a relativesize to a device to find out how much it
   means in sectors
 - find the space into which the configured FS can grow.
7 years ago
Adriaan de Groot 9e1c95ad05 [fsresizer] Refactor finding device
- Find device in separate function
 - If device isn't found, bail out
7 years ago
Adriaan de Groot 1c2714d832 [fsresizer] Match configuration to system
- Bail out earlier before doing any work if the configuration
   is invalid.
 - If it's valid, look for a matching device.
7 years ago
Adriaan de Groot aae4b38e69 [fsresizer] Fix endless loop
- Improve variable names
 - Missing iterator++
7 years ago
Adriaan de Groot 06a00a15c6 [fsresizer] Scan for devices, list partitions
- The is just debugging output, but it's the start of what needs
   to happen to find the FS that needs resizing.
7 years ago
Adriaan de Groot 428929b64f [fsresizer] Tiny step towards getting data from KPMcore 7 years ago
Adriaan de Groot 499dd2ce83 [fsresizer] Document configuration
- Add some notes on configuration of fsresizer
 - Convenience methods for checking validity.
7 years ago
Adriaan de Groot a81588190a [fsresizer] Simplify and make safer
- Make RelativeSize public so we can use it in non-member functions
 - Make a template out of matching the string suffixes; this is
   safer because the length of the suffix can be computed at compile-time
   (+1 for the trailing NUL) rather than writing it out in boilerplate.
7 years ago
Adriaan de Groot 4d5eb90a04 [fsresize] Add new module fsresizer
- Non-functional as yet, WIP
 - Intended for use on SBC images and similar, which need to resize
   the root partition to the size of the SD card they're on.

FIXES #921
7 years ago