Query: bd_link_disk_holder
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
BD_LINK_DISK_HOLDER(9) The Linux VFS BD_LINK_DISK_HOLDER(9)NAMEbd_link_disk_holder - create symlinks between holding disk and slave bdevSYNOPSISint bd_link_disk_holder(struct block_device * bdev, struct gendisk * disk);ARGUMENTSbdev the claimed slave bdev disk the holding diskDESCRIPTIONDON'T USE THIS UNLESS YOU'RE ALREADY USING IT. This functions creates the following sysfs symlinks. - from "slaves" directory of the holder disk to the claimed bdev - from "holders" directory of the bdev to the holder disk For example, if /dev/dm-0 maps to /dev/sda and disk for dm-0 is passed to bd_link_disk_holder, then: /sys/block/dm-0/slaves/sda --> /sys/block/sda /sys/block/sda/holders/dm-0 --> /sys/block/dm-0 The caller must have claimed bdev before calling this function and ensure that both bdev and disk are valid during the creation and lifetime of these symlinks.CONTEXTMight sleep.RETURNS0 on success, -errno on failure.COPYRIGHTKernel Hackers Manual 3.10 June 2014 BD_LINK_DISK_HOLDER(9)
| Related Man Pages |
|---|
| sg_map26(8) - centos |
| gnome-disks(1) - centos |
| wren(3) - plan9 |
| mkfs.minix(8) - suse |
| mkfs.minix(8) - redhat |
| Similar Topics in the Unix Linux Community |
|---|
| Best performance UNIX just for HOST Virtualization? |
| Tar Command |
| CentOS7 restoring file capabilities |
| Shopt -s histappend |
| [TIP] Processing YAML files with yq |