sd_fusing.py: Invoke ioctl to reread partitions directly
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 22 May 2024 12:57:56 +0000 (14:57 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 4 Dec 2024 11:00:01 +0000 (12:00 +0100)
commitfd325eb075f2941e354498027e58886141969cd8
tree4c66579c797b65e4ef3d62f50c192ab8675642b0
parent7650272954bb2595ccce0b6de4b55a75b83d7a51
sd_fusing.py: Invoke ioctl to reread partitions directly

This commit drops blockdev(8) in favor for invoking ioctl(2) directly,
to be able to catch EBUSY errors that happen to occur due to not yet
known kernel/udev timinig issue.

This commit also drops sfdisk --no-reread flag, which affects issuing
ioctl to reread partition table _before_ actual repartitioning.  ioctl
to reread partition table after writing changes is invoked unconditionally
and can't be disabled.

Change-Id: I105c445f9fdb3d1d2eee7ffd2de3f7ad04920f13
Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
sd_fusing.py