logo       

Removal of driverfs files in drivers/cdrom/cdrom.c: msg#00128

Subject: Removal of driverfs files in drivers/cdrom/cdrom.c

So, I'm looking at changing the driverfs API. In doring so, I came across 
this code in drivers/cdrom/cdrom.c:unregister_cdrom:

        if (atomic_read (&cdi->cdrom_driverfs_dev.refcount)) {
                device_remove_file (&cdi->cdrom_driverfs_dev, "name");
                device_remove_file (&cdi->cdrom_driverfs_dev, "kdev");
                put_device (&cdi->cdrom_driverfs_dev);
        }

This looks wrong, based on the fact that it wasn't the cdrom layer that 
created these files. They were, I believe, created by the SCSI cdrom 
layer. So, why are they being removed here, esp. since they are removed at 
a more general layer? 

Thanks,

        -pat


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



<Prev in Thread] Current Thread [Next in Thread>