Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'ata-6.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux

Pull ata fix from Niklas Cassel:
"Fix a bug where the SCSI Removable Media Bit (RMB) was incorrectly set
for hot-plug capable (and eSATA) ports.

The RMB bit means that the media is removable (e.g. floppy or CD-ROM),
not that the device server is removable. If the RMB bit is set, SCSI
will set the removable media sysfs attribute.

If the removable media sysfs attribute is set on a device,
GNOME/udisks will automatically mount the device on boot.

We only want to set the SCSI RMB bit (and thus the removable media
sysfs attribute) for devices where the ATA removable media device bit
is set"

* tag 'ata-6.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
ata: libata-scsi: Set the RMB bit only for removable media devices

+4 -4
+4 -4
drivers/ata/libata-scsi.c
··· 1831 1831 2 1832 1832 }; 1833 1833 1834 - /* set scsi removable (RMB) bit per ata bit, or if the 1835 - * AHCI port says it's external (Hotplug-capable, eSATA). 1834 + /* 1835 + * Set the SCSI Removable Media Bit (RMB) if the ATA removable media 1836 + * device bit (obsolete since ATA-8 ACS) is set. 1836 1837 */ 1837 - if (ata_id_removable(args->id) || 1838 - (args->dev->link->ap->pflags & ATA_PFLAG_EXTERNAL)) 1838 + if (ata_id_removable(args->id)) 1839 1839 hdr[1] |= (1 << 7); 1840 1840 1841 1841 if (args->dev->class == ATA_DEV_ZAC) {