bd_link_disk_holder man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]

BD_LINK_DISK_HOLDER(9)		 The Linux VFS		BD_LINK_DISK_HOLDER(9)

NAME
       bd_link_disk_holder - create symlinks between holding disk and slave
       bdev

SYNOPSIS
       int bd_link_disk_holder(struct block_device * bdev,
			       struct gendisk * disk);

ARGUMENTS
       bdev
	   the claimed slave bdev

       disk
	   the holding disk

DESCRIPTION
       DON'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.

CONTEXT
       Might sleep.

RETURNS
       0 on success, -errno on failure.

COPYRIGHT
Kernel Hackers Manual 3.8.	   June 2014		BD_LINK_DISK_HOLDER(9)
[top]

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net