Tasos, > I then called sd_revalidate_disk() multiple times and noticed that WP > was cleared only after the call to device_add_disk(). That led me to > figure out that this device needs a READ_10 command before WP is > disabled. Awesome work, thanks so much for debugging this! > On the other hand, I'm worried that by adding a READ_10 before every > mode sense, something else might break. If you do believe that adding a > READ_10 is the right way forward, I can try cleaning up the diff above > (with some advice) and submit it properly. Any suggestions are welcome. Let me mull over it until tomorrow. -- Martin K. Petersen Oracle Linux Engineering