]> sourceware.org Git - lvm2.git/commit
Fix udev synchronization for no-locking mode
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 31 Jan 2011 19:52:40 +0000 (19:52 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 31 Jan 2011 19:52:40 +0000 (19:52 +0000)
commite4b7c72b3ab2274cc5572032b6e17210e471d6a3
treee74c721192cc5b0dfe627e1839eefaec0a1f6706
parent6cbcd683ba6f57127bf7296ae078eece9b432cc0
Fix udev synchronization for no-locking mode

Instead of implicitly syncing udev operation in clustered and
file locking code -  call synchronization directly in lock_vol() when
the operation unlocks VG

The problem is missing implicit fs_unlock() in the no_locking code.
This is used with --sysinit on read-only filesystem locking dir.
In this case vgchange -ay could exit before all udev nodes are properly
synchronised and may cause problems with accessing such node right after
vgchange --sysinint command is finished.

Add test case for vgchange --sysinit.
WHATS_NEW
daemons/clvmd/clvmd-command.c
lib/locking/file_locking.c
lib/locking/locking.c
test/t-vgchange-sysinit.sh [new file with mode: 0755]
This page took 0.038488 seconds and 5 git commands to generate.