1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
LVM2 mirror repository https://sourceware.org/lvm2/
Go to file
Peter Rajnoha c8591b2ac7 dev-io: open device read-only to obtain readahead value
There's no need to have the device open RW while obtaining the readahead value.
The RW open used before caused the CHANGE udev event to be generated if the
WATCH udev rule was set for the underlying device (and that is normally the
case both for non-dm and dm devices by default).

This did not cause any problems before since we were not interested in
*underlying* devices. However, with upcoming changes (autoactivation), we're
watching for events on underlying devices marked as PVs and such a spurious
event could cause the autoactivation code to be triggered. So when trying
to deactivate the volume, we could end up with immediate activation just after
that because of the CHANGE event originated in the WATCH udev rule since the
underlying device was open RW during the deactivation process.

Though maybe a better solution would be to completely filter such spurious
events out of the autoactivation process somehow, it's still useful if there
are as least spurious events generated as possible in the system itself.
2012-06-25 11:55:37 +02:00
autoconf Using Fedora 14's autoreconf. 2011-01-07 14:38:34 +00:00
daemons cleanup: replace memset with struct initilization 2012-06-22 13:23:03 +02:00
doc kernel docs: Refresh kernel target documentation 2012-06-21 23:48:40 +01:00
include More .gitignore files for an in-source-tree build. 2012-06-08 16:34:43 +01:00
lib dev-io: open device read-only to obtain readahead value 2012-06-25 11:55:37 +02:00
libdaemon cleanup: replace memset with struct initilization 2012-06-22 13:23:03 +02:00
libdm cleanup: use dev_t type 2012-06-22 13:50:21 +02:00
liblvm cleanup: replace memset with struct initilization 2012-06-22 13:23:03 +02:00
man Initial support for lvconvert for thin pool volumes. 2012-05-09 12:17:06 +00:00
old-tests Add .gitignore files for an in-source-tree build. 2012-06-08 16:26:21 +01:00
po INSTALL rules updates 2010-04-09 21:42:48 +00:00
report-generators add copyright notices to new files 2010-07-28 12:20:38 +00:00
reports [REPORT-GENERATORS] cut down stylsheet.css to what we actually use 2010-07-21 10:00:38 +00:00
scripts systemd: Add Documentation references 2012-06-20 14:23:50 +02:00
test gitignore: Remove redundant test dir entry 2012-06-08 23:34:15 +01:00
tools thin: fix lvconvert error path NULL dereference 2012-06-22 13:50:21 +02:00
udev Detect the lvm binary path in lvmetad udev rules. 2012-03-12 08:59:55 +00:00
unit-tests cleanup: replace memset with struct initilization 2012-06-22 13:23:03 +02:00
.gitignore gitignore: Ignore files ending in ~ 2012-06-11 16:13:02 +01:00
aclocal.m4 Add aclocal.m4 (for pkgconfig). 2011-01-07 16:27:05 +00:00
configure veritysetup: Remove code as now in cryptsetup. 2012-06-11 16:12:20 +01:00
configure.in veritysetup: Remove code as now in cryptsetup. 2012-06-11 16:12:20 +01:00
COPYING Outline docs 2001-12-31 16:12:40 +00:00
COPYING.LIB Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
INSTALL quick review of docs 2008-11-04 17:49:22 +00:00
make.tmpl.in veritysetup: Remove code as now in cryptsetup. 2012-06-11 16:12:20 +01:00
Makefile.in veritysetup: Remove code as now in cryptsetup. 2012-06-11 16:12:20 +01:00
README Rename git report from LVM2.git to lvm2.git. 2012-06-08 17:41:43 +01:00
VERSION release: post-release update version 2012-06-09 00:44:01 +01:00
VERSION_DM release: post-release update version 2012-06-09 00:44:01 +01:00
WHATS_NEW dev-io: open device read-only to obtain readahead value 2012-06-25 11:55:37 +02:00
WHATS_NEW_DM systemd: Add Documentation references 2012-06-20 14:23:50 +02:00

This tree contains the LVM2 and device-mapper tools and libraries.

For more information about LVM2 read the changelog in the WHATS_NEW file.
Installation instructions are in INSTALL.

There is no warranty - see COPYING and COPYING.LIB.

Tarballs are available from:
  ftp://sources.redhat.com/pub/lvm2/

The source code is stored in git:
  http://git.fedorahosted.org/git/lvm2.git
  git clone git://git.fedorahosted.org/git/lvm2.git

Mailing list for general discussion related to LVM2:
  linux-lvm@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

Mailing lists for LVM2 development, patches and commits:
  lvm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/linux-lvm

  lvm2-commits@lists.fedorahosted.org (Read-only archive of commits)
  Subscribe from https://fedorahosted.org/mailman/listinfo/lvm2-commits

Mailing list for device-mapper development, including kernel patches
and multipath-tools:
  dm-devel@redhat.com
  Subscribe from https://www.redhat.com/mailman/listinfo/dm-devel

The source code repository used until 7th June 2012 is accessible here:
  http://sources.redhat.com/cgi-bin/cvsweb.cgi/LVM2/?cvsroot=lvm2.