summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2013-10-22 13:52:18 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2013-10-22 13:52:18 +0200
commit0a48137d39c51163ee29608c8c7ccbeecb4a7815 (patch)
treef830b3c64b12adb5e73691f66197f73c13e35510 /udev
parent65456a4a29d8f25ab75af2145b8a6b2a9ff391e5 (diff)
downloadlvm2-0a48137d39c51163ee29608c8c7ccbeecb4a7815.tar.gz
pvscan: use major:minor as short form of --major and --minor arg for pvscan --cache
Before, pvscan recognized either: pvscan --cache --major <major> --minor <minor> or pvscan --cache <DevicePath> When the device is gone and we need to notify lvmetad about device removal, only --major/--minor works as we can't translate DevicePath into major/minor pair anymore. The device does not exist in the system and we don't keep DevicePath index in lvmetad cache to make the translation internally into original major/minor pair. It would be useless to keep this index just for this one exact case. There's nothing bad about using "--major <major> --minor <minor>", but it makes our life a bit harder when trying to make an interconnection with systemd units, mainly with instantiated services where only one and only one arg can be passed (which is encoded in the service name). This patch tries to make this easier by adding support for recognizing the "<major>:<minor>" as a shortcut for the longer form "--major <major> --minor <minor>". The rule here is simple: if the argument starts with "/", it's a DevicePath, otherwise it's a <major>:<minor> pair.
Diffstat (limited to 'udev')
0 files changed, 0 insertions, 0 deletions