Re: Changing sd device from read only to read/write fails in 5.10 (BLKROSET)

From: Michael Katzmann
Date: Fri Jan 15 2021 - 22:28:18 EST


Sorry, that test in the end was inverted of course.. it should read

if( (DeviceFD = open( /dev/sdb, O_RDWR )) != ERROR ) {
printf("success\n"); // <== use to work (open R/W)
} else {
printf("failure"); // <== now fails under kernel 5.10
}