aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorSujit Reddy Thumma <[email protected]>2014-08-11 15:40:37 +0300
committerChristoph Hellwig <[email protected]>2014-09-15 16:01:57 -0700
commit2eefd57b97609949ae40952da2dea338e7d9a125 (patch)
tree9010e184d6af69458b34cf6239ba2e4ba6ef8c9c /lib/memory-notifier-error-inject.c
parent74cf298fedfcb732335cae5d157e95295e87cf2a (diff)
sd: Avoid sending medium write commands if device is write protected
The SYNCHRONIZE_CACHE command is a medium write command and hence can fail when the device is write protected. Avoid sending such commands by making sure that write-cache-enable is disabled even though the device claim to support it. Signed-off-by: Sujit Reddy Thumma <[email protected]> Signed-off-by: Dolev Raviv <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Reviewed-by: Venkatesh Srinivas <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions