[Bug 11231] New: fdisk reread partition table fails

bugzilla at busybox.net bugzilla at busybox.net
Tue Aug 14 10:10:12 UTC 2018


https://bugs.busybox.net/show_bug.cgi?id=11231

            Bug ID: 11231
           Summary: fdisk reread partition table fails
           Product: Busybox
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Networking
          Assignee: unassigned at busybox.net
          Reporter: oliver at schinagl.nl
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

In our current test setup, we create a docker container where we have a simple
file (created with dd if=/dev/zero) which we use fdisk on to create partitions
on.

This works, until fdisk tries to re-read the partition table. This fails! with
a warning and the exit code is non-null.

As we want to do more partitions from the script, we now have to resolve to
using fdisk || true which is non-ideal, as other errors also get skipped.

It seems that fdisk opens de fd to the image file (which I'm reasonably sure
also happens with a real disk) does its operation but when calling a re-read of
the partition table, the file is still opened by fdisk/busybox.

Using the partprobe applet on the image file works fine without fdisk running.

I suspect that the fdisk 'write_table' command should probably close the file,
write, reread and reopen the file rather then the current write and reread.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list