summaryrefslogtreecommitdiffstats
path: root/perl-install/resize_fat
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-04-02 19:45:27 +0100
committerRĂ©mi Verschelde <rverschelde@gmail.com>2017-04-04 20:04:47 +0200
commit23db13194282cfff24d4bc88a7790ebd272953a0 (patch)
tree02292c9df552239a8a191040829798db42d2f4a9 /perl-install/resize_fat
parent6753abe33da73245f22908724f671334de56cd09 (diff)
downloaddrakx-23db13194282cfff24d4bc88a7790ebd272953a0.tar
drakx-23db13194282cfff24d4bc88a7790ebd272953a0.tar.gz
drakx-23db13194282cfff24d4bc88a7790ebd272953a0.tar.bz2
drakx-23db13194282cfff24d4bc88a7790ebd272953a0.tar.xz
drakx-23db13194282cfff24d4bc88a7790ebd272953a0.zip
Add safety net for informing the kernel after writing a DOS partition table.
There is an unidentified condition that prevents udevd calling the BLKRRPART ioctl after a partition table is written. It looks like either the kernel or udevd drops device change events if they are too closely spaced in time. So, in the case where we expect udevd to call BLKRRPART, check /proc/partitions to make sure it has done so. Arbitrarily try 5 times, 100ms apart, before giving up and informing the kernel ourselves.
Diffstat (limited to 'perl-install/resize_fat')
0 files changed, 0 insertions, 0 deletions