Comment 45 for bug 1611277

Revision history for this message
Huang YangWen (yangwen5301) wrote :

Hi, is the change log of kernel 4.4.5 a valid upstream commit?

commit a55479ab637cda5ebbfdb9eb7c062bd99c13d5d9
Author: Manuel Lauss <email address hidden>
Date: Sat Feb 27 16:10:05 2016 +0100

    ata: ahci: don't mark HotPlugCapable Ports as external/removable

    commit dc8b4afc4a04fac8ee55a19b59f2356a25e7e778 upstream.

    The HPCP bit is set by bioses for on-board sata ports either because
    they think sata is hotplug capable in general or to allow Windows
    to display a "device eject" icon on ports which are routed to an
    external connector bracket.

    However in Redhat Bugzilla #1310682, users report that with kernel 4.4,
    where this bit test first appeared, a lot of partitions on sata drives
    are now mounted automatically.

    This patch should fix redhat and a lot of other distros which
    unconditionally automount all devices which have the "removable"
    bit set.

    Signed-off-by: Manuel Lauss <email address hidden>
    Signed-off-by: Tejun Heo <email address hidden>
    Fixes: 8a3e33cf92c7 ("ata: ahci: find eSATA ports and flag them as removable" changes userspace behavior)
    Link: http://<email address hidden>
    Signed-off-by: Greg Kroah-Hartman <email address hidden>

From: https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.5