sd_fusing.py: Invoke ioctl to reread partitions directly 81/311581/10
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Wed, 22 May 2024 12:57:56 +0000 (14:57 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 31 May 2024 04:20:08 +0000 (04:20 +0000)
commit5a7f3c8dead1caf68e44e7a08449671dffb43385
treee44e6bc6d9a71a32096f7be95ce3acaacf704cca
parent90313f8f34147693f50fec4bc45a16b4b4e6867c
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>
scripts/tizen/sd_fusing.py