5 Commits

Author SHA1 Message Date
cheliequan
595d00a2cd [PATCH] bcache-tools: Export CACHED_UUID and CACHED_LABEL
https://github.com/koverstreet/bcache-tools/pull/1

    Add bcache-export-cached helper to export CACHED_UUID and CACHED_LABEL always

    Linux kernel bcache driver does not always emit a uevent[1] for when
    a backing device is bound to a bcacheN device.  When this happens, the udev
    rule for creating /dev/bcache/by-uuid or /dev/bcache/by-label symlinks does
    not fire and removes any persistent symlink to a specific backing device
    since the bcache minor numbers (bcache0, 1, 2) are not guaranteed across reboots.

    This script reads the superblock of the bcache device slaves,ensuring the slave
    is a backing device via sb.version check, extracts the dev.uuid and
    dev.label values and exports them to udev for triggering the symlink rules in
    the existing rules file.

    1. https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1729145

    Signed-off-by: Shaoxiong Li <dahefanteng@gmail.com>
    Signed-off-by: Coly Li <colyli@suse.de>
    Signed-off-by: cheliequan <cheliequan@inspur.com>

(cherry picked from commit 84558fec5f0e4ae5f38ac34dde1775d4eeb766e2)
2024-12-16 14:34:11 +08:00
swf504
baef578b50
Add safe compilation options PIE/pie/PIC/FS
Add safe compilation options PIE/pie/PIC/FS

Signed-off-by: swf504 <suweifeng1@huawei.com>
2023-03-07 03:45:54 +00:00
haomi123
05835758b5
fix-changelog-date 2022-05-12 07:53:16 +00:00
caodongxia
096a9610f4 add safe compilation options fstack-protector-strong
(cherry picked from commit f104101dd6a9a43d8a7bf8fbb66da9fce35a92b5)
2021-09-10 15:18:00 +08:00
Zhiqiang Liu
20e9022103 bcache-tools: init bcache-tools package with v1.1 version
bcache is a Linux kernel block layer cache. It allows
one or more fast disk drives such as flash-based solid
state drives(SSDs) to act as a cache for one or more
slower hard disk drives.
bcache-tools containes the userspace tools required for
bcache. Here we init bcache-tools package with v1.1 version.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
2021-01-06 12:19:46 +08:00