On Mon, 11 Jul 2016, Oliver Neukum wrote:

> Some SATA to USB bridges fail to cooperate with some
> drives resulting in no cache being present being reported
> to the host. That causes the host to skip sending
> a command to synchronize caches. That causes data loss
> when the drive is powered down.

> @@ -581,6 +582,9 @@ void usb_stor_adjust_quirks(struct usb_device *udev, 
> unsigned long *fflags)
>               case 'w':
>                       f |= US_FL_NO_WP_DETECT;
>                       break;
> +             case 'y':
> +                     f |= US_FL_ALWAYS_SYNC;
> +                     break;
>               /* Ignore unrecognized flag characters */
>               }
>       }

You need to update Documentation/kernel-parameters.txt too.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to