#2071 PR merged
: RAWDISK output: improve device partition detection (e.g. Ubuntu 18.04)¶
Labels: enhancement
, bug
, fixed / solved / done
OliverO2 opened issue at 2019-03-06 15:38:¶
Pull Request Details:¶
-
Type: Bug Fix
-
Impact: Normal (creating RAWDISK output fails with "no space left on device")
-
Reference to related issue (URL):
-
How was this pull request tested? On Ubuntu 18.04.2 LTS
-
Brief description of the changes in this pull request:
On Ubuntu 18.04, it has been observed that after creating a loop
device
and creating a properly sized VFAT file system >250 MB on it, after
mounting the file system size was actually just 30 MB. Reason: The
partition detection did not pick up the correct partition sizes of the
associated image file. This change uses losetup's --partscan option
(supported by util-linux v2.21 and above) to offer one additional
opportunity to detect partitions. If the option is not available, a
traditional losetup call will be used as a fallback.
jsmeix commented at 2019-03-07 10:05:¶
@rear/contributors
could you also have a look if this change is ok.
If there are no objections I would like to merge it tomorrow.
OliverO2 commented at 2019-03-07 10:32:¶
@jsmeix Thanks for reviewing. Additional comment added as requested.
jsmeix commented at 2019-03-08 12:37:¶
@OliverO2
thank you for continuously testing ReaR on current Ubuntu versions
and for your adaptions to keep ReaR working on new Ubuntu versions!
[Export of Github issue for rear/rear.]