[PATCH RFC] sr: mark the device as changed when burning a CD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some of our customers complain that, after burning a CD, it's not possible
to proceed to mount it without ejecting it first.

The problem is that the sr driver caches some information about the CD-ROM
and doesn't update them after burning it, leading to a failure
when the isofs filesystem tries to read the superblock.

This patch modifies the sr driver so it detects the SG_IO
write ioctls and marks the device as "changed".
As a result, at the next open() syscall, the revalidate_block()
callback will be executed and the sr driver will update its cached info.

Is this patch acceptable to you? Do you have different ideas?

Maurizio Lombardi (1):
  sr: mark device as changed when performing a write SG_IO operation

 drivers/scsi/sr.c | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
Maurizio Lombardi




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux