This may be a regression introduced by this commit: commit 20bd1d026aacc5399464f8328f305985c493cde3 Author: Jeremy Cline <jer...@jcline.org> Date: Tue Mar 6 21:47:32 2018 +0000
scsi: sd: Keep disk read-only when re-reading partition If the read-only flag is true on a SCSI disk, re-reading the partition table sets the flag back to false. To observe this bug, you can run: 1. blockdev --setro /dev/sda 2. blockdev --rereadpt /dev/sda 3. blockdev --getro /dev/sda This commit reads the disk's old state and combines it with the device disk-reported state rather than unconditionally marking it as RW. Reported-by: Li Ning <lining916740...@icloud.com> Signed-off-by: Jeremy Cline <jer...@jcline.org> Signed-off-by: Martin K. Petersen <martin.peter...@oracle.com> -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1823346 Title: SD card stays locked even when unlocked To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1823346/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs