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
}

Reply via email to