Royce Lv has posted comments on this change.
Change subject: force reload udev rules to avoid LUN device permission error
......................................................................
Patch Set 1:
Dan,
my cmd is :
#udevadm control --reload
version is 182, shipped with fc17
checked the source code,found reload rules happens at:
(1)periodically check rule file time stamp and found it's changed(3s at most)
(2)SIGHUP
(3)call reload rules
under these three condition all rules are cleared
udevd will reload rules to mem synchronizedly.
the udev-client is blocked until it polled the ack from udevd means the control finished.
So I guess it's safe to call this cmd.
Can check the source code here:
www.kernel.org/pub/linux/utils/kernel/hotplug/udev-182.tar.bz2
(udevd.c/udev-rules.c)
According to changelog 181:
The 'udevadm control --reload-rules' option has been renamed to
'--reload'.
It now also reloads the kernel module configuration.
Thought in source code udev-182 it still restores --reload-rules, but did not expose it to
man.
So I'm afraid there will be some gap of this cmd in the future.
--
To view, visit
http://gerrit.ovirt.org/6780
To unsubscribe, visit
http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I718d62e67b0a228f2510233c5dd9d1d94c4a736c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
Gerrit-Reviewer: Dan Kenigsberg <danken(a)redhat.com>
Gerrit-Reviewer: Eduardo <ewarszaw(a)redhat.com>
Gerrit-Reviewer: Royce Lv <lvroyce(a)linux.vnet.ibm.com>
Gerrit-Reviewer: Xu He Jie <xuhj(a)linux.vnet.ibm.com>