debian/0000775000000000000000000000000012252554330007171 5ustar debian/clvm.init0000664000000000000000000000554512215547765011045 0ustar #!/bin/sh # ### BEGIN INIT INFO # Provides: clvm # Required-Start: lvm2 # Required-Stop: lvm2 # Should-Start: cman corosync openais # Should-Stop: cman corosync openais # Default-Start: S # Default-Stop: 0 6 # Short-Description: start and stop the lvm cluster locking daemon ### END INIT INFO # # Author: Frederik Schüler # based on the old clvm init script from etch # and the clvmd init script from RHEL5 PATH=/sbin:/usr/sbin:/bin:/usr/bin DESC="Cluster LVM Daemon" NAME=clvm DAEMON=/usr/sbin/clvmd SCRIPTNAME=/etc/init.d/clvm [ -x $DAEMON ] || exit 0 . /lib/init/vars.sh . /lib/lsb/init-functions if [ ! -f /etc/cluster/cluster.conf ]; then log_failure_msg "clvmd: cluster not configured. Aborting." exit 0 fi if ! cman_tool status >/dev/null 2>&1; then log_failure_msg "clvmd: cluster is not running. Aborting." exit 0 fi CLVMDTIMEOUT=20 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME DAEMON_OPTS="-T$CLVMDTIMEOUT" do_start() { if [ ! -d "/run/lvm" ]; then mkdir /run/lvm fi start-stop-daemon --start --quiet --exec $DAEMON -- $DAEMON_OPTS || status="$?" # flush cache vgscan > /dev/null 2>&1 return $status } do_activate() { if [ -n "$LVM_VGS" ] ; then log_action_msg "Activating VGs $LVM_VGS" vgchange -ayl $LVM_VGS || return $? else log_action_msg "Activating all VGs" vgchange -ayl || return $? fi } do_deactivate() { if [ -n "$LVM_VGS" ] ; then vgs="$LVM_VGS" else # Hack to only deactivate clustered volumes vgs=$(vgdisplay -C -o vg_name,vg_attr --noheadings 2> /dev/null | awk '($2 ~ /.....c/) {print $1}') fi [ "$vgs" ] || return 0 vgchange -anl $vgs || return $? } do_stop() { start-stop-daemon --stop --quiet --name clvmd status=$? return $status } case "$1" in start) # start the daemon... log_daemon_msg "Starting $DESC" "$NAME" do_start status=$? case "$status" in 0) log_end_msg 0 ;; 1) log_action_msg " already running" ; log_end_msg 0 ;; *) log_end_msg 1 ;; esac # and activate clustered volume groups do_activate status=$? exit $status ;; stop) # deactivate volumes... log_daemon_msg "Deactivating VG $vg:" do_deactivate status=$? case "$status" in 0) log_end_msg 0 ;; 1) log_end_msg 0 ;; *) log_end_msg 1 ;; esac # and stop the daemon log_daemon_msg "Stopping $DESC" "$NAME" do_stop status=$? case "$status" in 0) log_end_msg 0 ; exit 0 ;; 1) log_end_msg 0 ; exit 0 ;; *) log_end_msg 1 ; exit $status ;; esac ;; restart|force-reload) $0 stop sleep 1 $0 start ;; status) pid=$( pidof $DAEMON ) if [ -n "$pid" ] ; then log_action_msg "$DESC is running" else log_action_msg "$DESC is not running" exit 3 fi exit 0 ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0 debian/lvm2.install0000664000000000000000000000024311750751164011446 0ustar ../../tree/lvm2/* / etc/lvm/lvm.conf sbin/fsadm sbin/lv* sbin/pv* sbin/vg* usr/share/man/man8/lv* usr/share/man/man8/pv* usr/share/man/man8/vg* usr/share/man/man5 debian/clvm.README.Debian0000664000000000000000000000155612215547046012206 0ustar This is the cluster LVM daemon for LVM2. In conjunction with the Red Hat cluster infrastructure (cman & dlm) it will allow LVM volumes on shared storage to be managed from a central point. If you also want to share data you should also look at GFS. Only "normal" block devices may be shared. At present, snapshots and mirroring are not cluster aware. So, if you want to snapshot a volume is is VERY IMPORTANT that not only the snapshot device but also the origin device be activated on one node only. clvmd should be run on all nodes in the cluster, unless this is the case commands will fail as the integrity of the LVM metadata cannot be assured. In order to make normal lvm2 cluster-aware it is necessary to edit the configuration file /etc/lvm/lvm.conf as follows: in the global{} section: locking_type = 3 Patrick Caulfield 24th December 2004 debian/lvm2.docs0000664000000000000000000000001211750751164010722 0ustar doc/*.txt debian/libdevmapper-event1.02.1.symbols0000664000000000000000000000214512102766326015042 0ustar libdevmapper-event.so.1.02.1 libdevmapper-event1.02.1 #MINVER# Base@Base 2:1.02.20 dm_event_daemon_fini_fifos@Base 2:1.02.74 dm_event_daemon_init_fifos@Base 2:1.02.74 dm_event_daemon_talk@Base 2:1.02.74 dm_event_get_registered_device@Base 2:1.02.20 dm_event_get_version@Base 2:1.02.74 dm_event_handler_create@Base 2:1.02.20 dm_event_handler_destroy@Base 2:1.02.20 dm_event_handler_get_dev_name@Base 2:1.02.74 dm_event_handler_get_dso@Base 2:1.02.20 dm_event_handler_get_event_mask@Base 2:1.02.20 dm_event_handler_get_major@Base 2:1.02.20 dm_event_handler_get_minor@Base 2:1.02.20 dm_event_handler_get_timeout@Base 2:1.02.20 dm_event_handler_get_uuid@Base 2:1.02.20 dm_event_handler_set_dev_name@Base 2:1.02.20 dm_event_handler_set_dmeventd_path@Base 2:1.02.74 dm_event_handler_set_dso@Base 2:1.02.20 dm_event_handler_set_event_mask@Base 2:1.02.20 dm_event_handler_set_major@Base 2:1.02.20 dm_event_handler_set_minor@Base 2:1.02.20 dm_event_handler_set_timeout@Base 2:1.02.20 dm_event_handler_set_uuid@Base 2:1.02.20 dm_event_register_handler@Base 2:1.02.20 dm_event_unregister_handler@Base 2:1.02.20 debian/compat0000664000000000000000000000000211750751164010375 0ustar 7 debian/dmsetup.postinst0000664000000000000000000000025611750751164012470 0ustar #!/bin/sh set -e case "$1" in configure) if [ -x /usr/sbin/update-initramfs ]; then update-initramfs -u fi ;; esac #DEBHELPER# exit 0 debian/lvm2-udeb.install0000664000000000000000000000017211750751164012364 0ustar ../../tree/lvm2/lib / ../../tree/lvm2/usr/share/initramfs-tools /usr/share etc/lvm/lvm.conf sbin/lv* sbin/pv* sbin/vg* debian/liblvm2-dev.install0000664000000000000000000000016511750751164012714 0ustar usr/include/lvm2app.h usr/include/lvm2cmd.h usr/lib/liblvm2app.so usr/lib/liblvm2cmd.so usr/lib/pkgconfig/lvm2app.pc debian/patches/0000775000000000000000000000000012252554303010620 5ustar debian/patches/enable-issue-discards.patch0000664000000000000000000000160312252554263016014 0ustar Description: Enable "issue_discards" option by default to trim SSDs when changing PVs. This option has no effect if the kernel or the drive does not support trimming, so it's safe to enable by default. See also https://blueprints.launchpad.net/ubuntu/+spec/core-1311-ssd-trimming Author: Martin Pitt Bug-Debian: http://bugs.debian.org/717313 Index: lvm2-2.02.98/doc/example.conf.in =================================================================== --- lvm2-2.02.98.orig/doc/example.conf.in 2013-12-13 10:43:03.000000000 +0100 +++ lvm2-2.02.98/doc/example.conf.in 2013-12-13 10:49:09.471664140 +0100 @@ -196,7 +196,7 @@ # to 1, discards will only be issued if both the storage and kernel provide # support. # 1 enables; 0 disables. - issue_discards = 0 + issue_discards = 1 } # This section allows you to configure the way in which LVM selects debian/patches/monitoring-default-off.patch0000664000000000000000000000354712151621435016230 0ustar --- a/lib/config/defaults.h +++ b/lib/config/defaults.h @@ -61,7 +61,7 @@ #define DEFAULT_DMEVENTD_MIRROR_LIB "libdevmapper-event-lvm2mirror.so" #define DEFAULT_DMEVENTD_SNAPSHOT_LIB "libdevmapper-event-lvm2snapshot.so" #define DEFAULT_DMEVENTD_THIN_LIB "libdevmapper-event-lvm2thin.so" -#define DEFAULT_DMEVENTD_MONITOR 1 +#define DEFAULT_DMEVENTD_MONITOR 0 #define DEFAULT_BACKGROUND_POLLING 1 #define DEFAULT_THIN_CHECK_OPTIONS "-q" --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -720,7 +720,7 @@ # Monitoring is enabled by default when activating logical volumes. # Set to 0 to disable monitoring or use the --ignoremonitoring option. - monitoring = 1 + monitoring = 0 # When pvmove or lvconvert must wait for the kernel to finish # synchronising or merging data, they check and report progress --- a/tools/toollib.c +++ b/tools/toollib.c @@ -1500,8 +1500,6 @@ int get_activation_monitoring_mode(struct cmd_context *cmd, int *monitoring_mode) { - *monitoring_mode = DEFAULT_DMEVENTD_MONITOR; - if (arg_count(cmd, monitor_ARG) && (arg_count(cmd, ignoremonitoring_ARG) || arg_count(cmd, sysinit_ARG))) { @@ -1509,14 +1507,15 @@ return 0; } - if (arg_count(cmd, monitor_ARG)) - *monitoring_mode = arg_int_value(cmd, monitor_ARG, + *monitoring_mode = find_config_tree_bool(cmd, "activation/monitoring", DEFAULT_DMEVENTD_MONITOR); - else if (is_static() || arg_count(cmd, ignoremonitoring_ARG) || - arg_count(cmd, sysinit_ARG) || - !find_config_tree_bool(cmd, "activation/monitoring", - DEFAULT_DMEVENTD_MONITOR)) + + if (is_static() || arg_count(cmd, ignoremonitoring_ARG) || + arg_count(cmd, sysinit_ARG)) *monitoring_mode = DMEVENTD_MONITOR_IGNORE; + else if (arg_count(cmd, monitor_ARG)) + *monitoring_mode = arg_int_value(cmd, monitor_ARG, + *monitoring_mode); return 1; } debian/patches/series0000664000000000000000000000034512252553754012050 0ustar install.patch libs-cleanup.patch dirs.patch force-modprobe.patch #libdm-atomic.patch implicit-pointer.patch avoid-dev-block.patch dm-event-api.patch monitoring-default-off.patch missing-dmeventd.patch enable-issue-discards.patch debian/patches/upstream-update-device-types.patch0000664000000000000000000000065512151620076017365 0ustar Description: cherry pick new device types from upstream --- a/lib/filters/filter.c +++ b/lib/filters/filter.c @@ -136,6 +136,10 @@ {"mmc", 16}, /* MMC block device */ {"blkext", 1}, /* Extended device partitions */ {"fio", 16}, /* Fusion */ + {"mtip32xx", 16}, /* Micron PCIe SSDs */ + {"vtms", 16}, /* Violin Memory */ + {"skd", 16}, /* STEC */ + {"scm", 8}, /* Storage Class Memory (IBM S/390) */ {NULL, 0} }; debian/patches/missing-dmeventd.patch0000664000000000000000000000606712151621435015126 0ustar Description: Ignore missing dmeventd Author: Bastian Blank --- a/daemons/dmeventd/libdevmapper-event.c +++ b/daemons/dmeventd/libdevmapper-event.c @@ -437,7 +437,10 @@ /* server is not running */ if ((args[0][0] == '/') && stat(args[0], &statbuf)) { - log_sys_error("stat", args[0]); + if (errno != ENOENT) + log_error("Unable to find " DMEVENTD_PATH ": %s", strerror(errno)); + else + log_sys_debug("stat", DMEVENTD_PATH); return 0; } @@ -623,10 +626,19 @@ if ((err = _do_event(DM_EVENT_CMD_REGISTER_FOR_EVENT, dmevh->dmeventd_path, &msg, dmevh->dso, uuid, dmevh->mask, dmevh->timeout)) < 0) { - log_error("%s: event registration failed: %s", - dm_task_get_name(dmt), - msg.data ? msg.data : strerror(-err)); - ret = 0; + if (err != -ESRCH) { + log_error("%s: event registration failed: %s", + dm_task_get_name(dmt), + msg.data ? msg.data : strerror(-err)); + ret = 0; + } + else { + /* XXX: Ignore missing daemon */ + log_debug("%s: event registration failed, ignored: %s", + dm_task_get_name(dmt), + msg.data ? msg.data : strerror(-err)); + ret = 2; + } } dm_free(msg.data); --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -1214,10 +1214,12 @@ if (!r) return_0; + else if (r == 2) + log_info("No monitoring daemon available for %s", uuid); + else if (r == 1) + log_info("%s %s for events", set ? "Monitored" : "Unmonitored", uuid); - log_info("%s %s for events", set ? "Monitored" : "Unmonitored", uuid); - - return 1; + return r; } #endif @@ -1231,7 +1233,7 @@ { #ifdef DMEVENTD int i, pending = 0, monitored; - int r = 1; + int r = 1, err; struct dm_list *tmp, *snh, *snht; struct lv_segment *seg; struct lv_segment *log_seg; @@ -1366,25 +1368,30 @@ continue; /* FIXME specify events */ - if (!monitor_fn(seg, 0)) { + err = monitor_fn(seg, 0); + if (!err) { log_error("%s/%s: %s segment monitoring function failed.", lv->vg->name, lv->name, seg->segtype->name); return 0; } - - /* Check [un]monitor results */ - /* Try a couple times if pending, but not forever... */ - for (i = 0; i < 10; i++) { - pending = 0; - monitored = seg->segtype->ops->target_monitored(seg, &pending); - if (pending || - (!monitored && monitor) || - (monitored && !monitor)) - log_very_verbose("%s/%s %smonitoring still pending: waiting...", - lv->vg->name, lv->name, monitor ? "" : "un"); - else - break; - sleep(1); + /* XXX: Ignore monitoring events if no daemon is available. */ + else if (err == 2) + monitored = monitor = 0; + else { + /* Check [un]monitor results */ + /* Try a couple times if pending, but not forever... */ + for (i = 0; i < 10; i++) { + pending = 0; + monitored = seg->segtype->ops->target_monitored(seg, &pending); + if (pending || + (!monitored && monitor) || + (monitored && !monitor)) + log_very_verbose("%s/%s %smonitoring still pending: waiting...", + lv->vg->name, lv->name, monitor ? "" : "un"); + else + break; + sleep(1); + } } if (r) debian/patches/avoid-dev-block.patch0000664000000000000000000000221611750751164014616 0ustar Description: Prefer any other device name over names in /dev/block/. Author: Colin Watson Bug-Ubuntu: https://bugs.launchpad.net/bugs/341928 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=569290 Index: quantal/lib/device/dev-cache.c =================================================================== --- quantal.orig/lib/device/dev-cache.c 2012-04-30 15:14:19.698751558 +0100 +++ quantal/lib/device/dev-cache.c 2012-04-30 15:21:40.598758706 +0100 @@ -249,6 +249,21 @@ if ((r = _apply_builtin_path_preference_rules(path0, path1)) >= 0) return r; + /* Put /dev/block/ names last regardless of path shortness. + * FIXME It would be better if we could do this in the configuration + * file, but the only way to do so with preferred_names is to try to + * enumerate all the possible names we might want to prefer over + * /dev/block/. */ + m0 = strncmp(path0, "/dev/block/", 11); + m1 = strncmp(path1, "/dev/block/", 11); + + if (m0 != m1) { + if (m0 == 0) + return 1; + if (m1 == 0) + return 0; + } + /* Return the path with fewer slashes */ for (p = path0; p++; p = (const char *) strchr(p, '/')) slash0++; debian/patches/dirs.patch0000664000000000000000000000473412151621435012611 0ustar --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -97,7 +97,7 @@ # N.B. If obtain_device_list_from_udev is set to 1 the list of # devices is instead obtained from udev and any existing .cache # file is removed. - cache_dir = "@DEFAULT_SYS_DIR@/@DEFAULT_CACHE_SUBDIR@" + cache_dir = "/run/lvm" cache_file_prefix = "" # You can turn off writing this cache file by setting this to 0. @@ -425,7 +425,7 @@ # Full pathnames can be given. # Search this directory first for shared libraries. - # library_dir = "/lib" + # library_dir = "/lib/lvm2" # The external locking library to load if locking_type is set to 2. # locking_library = "liblvm2clusterlock.so" --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -853,18 +853,16 @@ if (cache_dir || cache_file_prefix) { if (dm_snprintf(cache_file, sizeof(cache_file), - "%s%s%s/%s.cache", - cache_dir ? "" : cmd->system_dir, - cache_dir ? "" : "/", - cache_dir ? : DEFAULT_CACHE_SUBDIR, + "%s/%s.cache", + cache_dir ? : DEFAULT_RUN_DIR, cache_file_prefix ? : DEFAULT_CACHE_FILE_PREFIX) < 0) { log_error("Persistent cache filename too long."); goto bad; } } else if (!(dev_cache = find_config_tree_str(cmd, "devices/cache", NULL)) && (dm_snprintf(cache_file, sizeof(cache_file), - "%s/%s/%s.cache", - cmd->system_dir, DEFAULT_CACHE_SUBDIR, + "%s/%s.cache", + DEFAULT_RUN_DIR, DEFAULT_CACHE_FILE_PREFIX) < 0)) { log_error("Persistent cache filename too long."); goto bad; --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -911,8 +911,17 @@ { void *dl; struct dso_data *ret = NULL; + char dso_name[PATH_MAX]; - if (!(dl = dlopen(data->dso_name, RTLD_NOW))) { + if (strchr(data->dso_name, '/') == NULL) { + strcpy(dso_name, PLUGIN_PATH); + strncat(dso_name, data->dso_name, sizeof(dso_name)); + } else { + strncpy(dso_name, data->dso_name, sizeof(dso_name)); + } + dso_name[sizeof(dso_name) - 1] = 0; + + if (!(dl = dlopen(dso_name, RTLD_NOW))) { const char *dlerr = dlerror(); syslog(LOG_ERR, "dmeventd %s dlopen failed: %s", data->dso_name, dlerr); --- a/daemons/dmeventd/Makefile.in +++ b/daemons/dmeventd/Makefile.in @@ -58,6 +58,7 @@ LIBS += -ldevmapper LVMLIBS += -ldevmapper-event $(PTHREAD_LIBS) +CFLAGS += -DPLUGIN_PATH=\"$(libdir)/device-mapper/\" dmeventd: $(LIB_SHARED) dmeventd.o $(CC) $(CFLAGS) $(LDFLAGS) $(ELDFLAGS) -L. -o $@ dmeventd.o \ debian/patches/dm-event-api.patch0000664000000000000000000000676512151621435014144 0ustar --- a/daemons/dmeventd/libdevmapper-event.c +++ b/daemons/dmeventd/libdevmapper-event.c @@ -340,7 +340,7 @@ return bytes == size; } -int daemon_talk(struct dm_event_fifos *fifos, +int dm_event_daemon_talk(struct dm_event_fifos *fifos, struct dm_event_daemon_message *msg, int cmd, const char *dso_name, const char *dev_name, enum dm_event_mask evmask, uint32_t timeout) @@ -463,7 +463,7 @@ return ret; } -int init_fifos(struct dm_event_fifos *fifos) +int dm_event_daemon_init_fifos(struct dm_event_fifos *fifos) { /* FIXME? Is fifo the most suitable method? Why not share comms/daemon code with something else e.g. multipath? */ @@ -510,10 +510,10 @@ if (!_start_daemon(dmeventd_path, fifos)) return_0; - return init_fifos(fifos); + return dm_event_daemon_init_fifos(fifos); } -void fini_fifos(struct dm_event_fifos *fifos) +void dm_event_daemon_fini_fifos(struct dm_event_fifos *fifos) { if (flock(fifos->server, LOCK_UN)) log_error("flock unlock %s", fifos->server_path); @@ -592,16 +592,16 @@ return -ESRCH; } - ret = daemon_talk(&fifos, msg, DM_EVENT_CMD_HELLO, NULL, NULL, 0, 0); + ret = dm_event_daemon_talk(&fifos, msg, DM_EVENT_CMD_HELLO, NULL, NULL, 0, 0); dm_free(msg->data); msg->data = 0; if (!ret) - ret = daemon_talk(&fifos, msg, cmd, dso_name, dev_name, evmask, timeout); + ret = dm_event_daemon_talk(&fifos, msg, cmd, dso_name, dev_name, evmask, timeout); /* what is the opposite of init? */ - fini_fifos(&fifos); + dm_event_daemon_fini_fifos(&fifos); return ret; } @@ -810,7 +810,7 @@ char *p; struct dm_event_daemon_message msg = { 0, 0, NULL }; - if (daemon_talk(fifos, &msg, DM_EVENT_CMD_HELLO, NULL, NULL, 0, 0)) + if (dm_event_daemon_talk(fifos, &msg, DM_EVENT_CMD_HELLO, NULL, NULL, 0, 0)) return 0; p = msg.data; *version = 0; --- a/daemons/dmeventd/.exported_symbols +++ b/daemons/dmeventd/.exported_symbols @@ -1,4 +1,4 @@ -init_fifos -fini_fifos -daemon_talk +dm_event_daemon_init_fifos +dm_event_daemon_fini_fifos +dm_event_daemon_talk dm_event_get_version --- a/daemons/dmeventd/dmeventd.c +++ b/daemons/dmeventd/dmeventd.c @@ -1842,14 +1842,14 @@ /* Get the list of registrations from the running daemon. */ - if (!init_fifos(&fifos)) { + if (!dm_event_daemon_init_fifos(&fifos)) { fprintf(stderr, "WARNING: Could not initiate communication with existing dmeventd.\n"); exit(EXIT_FAILURE); } if (!dm_event_get_version(&fifos, &version)) { fprintf(stderr, "WARNING: Could not communicate with existing dmeventd.\n"); - fini_fifos(&fifos); + dm_event_daemon_fini_fifos(&fifos); exit(EXIT_FAILURE); } @@ -1860,7 +1860,7 @@ exit(EXIT_FAILURE); } - if (daemon_talk(&fifos, &msg, DM_EVENT_CMD_GET_STATUS, "-", "-", 0, 0)) { + if (dm_event_daemon_talk(&fifos, &msg, DM_EVENT_CMD_GET_STATUS, "-", "-", 0, 0)) { exit(EXIT_FAILURE); } @@ -1889,7 +1889,7 @@ } _initial_registrations[count] = 0; - if (daemon_talk(&fifos, &msg, DM_EVENT_CMD_DIE, "-", "-", 0, 0)) { + if (dm_event_daemon_talk(&fifos, &msg, DM_EVENT_CMD_DIE, "-", "-", 0, 0)) { fprintf(stderr, "Old dmeventd refused to die.\n"); exit(EXIT_FAILURE); } @@ -1899,12 +1899,12 @@ * until one fails. */ for (i = 0; i < 10; ++i) { - if (daemon_talk(&fifos, &msg, DM_EVENT_CMD_DIE, "-", "-", 0, 0)) + if (dm_event_daemon_talk(&fifos, &msg, DM_EVENT_CMD_DIE, "-", "-", 0, 0)) break; /* yep, it's dead probably */ usleep(10); } - fini_fifos(&fifos); + dm_event_daemon_fini_fifos(&fifos); } static void usage(char *prog, FILE *file) debian/patches/1075994_move_thin_check_executable_to_proper_section.patch0000664000000000000000000000355412151620076023734 0ustar Description: Move thin_check_executable to proper section Origin: upstream, http://git.fedorahosted.org/cgit/lvm2.git/commit/?id=8db4540263f607e2113a405953000527ffd34b3c Bug-Ubuntu: https://launchpad.net/bugs/1075994 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -463,6 +463,16 @@ # proper udev rules, all changes in block device configuration will be # *ignored* until a manual 'vgscan' is performed. use_lvmetad = 0 + + # Full path of the utility called to check that a thin metadata device + # is in a state that allows it to be used. + # Each time a thin pool needs to be activated, this utility is executed. + # The activation will only proceed if the utility has an exit status of 0. + # Set to "" to skip this check. (Not recommended.) + # The thin tools are available as part of the device-mapper-persistent-data + # package from https://github.com/jthornber/thin-provisioning-tools. + # + thin_check_executable = "/usr/sbin/thin_check -q" } activation { @@ -650,16 +660,6 @@ thin_pool_autoextend_threshold = 100 thin_pool_autoextend_percent = 20 - # Full path of the utility called to check that a thin metadata device - # is in a state that allows it to be used. - # Each time a thin pool needs to be activated, this utility is executed. - # The activation will only proceed if the utility has an exit status of 0. - # Set to "" to skip this check. (Not recommended.) - # The thin tools are available as part of the device-mapper-persistent-data - # package from https://github.com/jthornber/thin-provisioning-tools. - # - thin_check_executable = "/sbin/thin_check -q" - # While activating devices, I/O to devices being (re)configured is # suspended, and as a precaution against deadlocks, LVM2 needs to pin # any memory it is using so it is not paged out. Groups of pages that debian/patches/implicit-pointer.patch0000664000000000000000000000044311750751164015140 0ustar --- a/tools/lvm.c +++ b/tools/lvm.c @@ -25,9 +25,6 @@ # include # include -# ifndef HAVE_RL_COMPLETION_MATCHES -# define rl_completion_matches(a, b) completion_matches((char *)a, b) -# endif static struct cmdline_context *_cmdline; debian/patches/libs-cleanup.patch0000664000000000000000000001047712151621435014227 0ustar --- a/configure.in +++ b/configure.in @@ -436,7 +436,7 @@ AC_MSG_CHECKING(whether to enable readline) AC_ARG_ENABLE([readline], AC_HELP_STRING([--disable-readline], [disable readline support]), - READLINE=$enableval, READLINE=maybe) + READLINE=$enableval, READLINE=yes) AC_MSG_RESULT($READLINE) ################################################################################ @@ -1173,21 +1173,9 @@ ################################################################################ dnl -- Check for selinux if test x$SELINUX = xyes; then - AC_CHECK_LIB([sepol], [sepol_check_context], [ - AC_DEFINE([HAVE_SEPOL], 1, [Define to 1 if sepol_check_context is available.]) - SELINUX_LIBS="-lsepol"]) - - AC_CHECK_LIB([selinux], [is_selinux_enabled], [ - AC_CHECK_HEADERS([selinux/selinux.h],, hard_bailout) - AC_CHECK_HEADERS([selinux/label.h]) - AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) - SELINUX_LIBS="-lselinux $SELINUX_LIBS" - SELINUX_PC="libselinux" - HAVE_SELINUX=yes ], [ - AC_MSG_WARN(Disabling selinux) - SELINUX_LIBS= - SELINUX_PC= - HAVE_SELINUX=no ]) + AC_DEFINE([HAVE_SELINUX], 1, [Define to 1 to include support for selinux.]) + SELINUX_LIBS="$(pkg-config --libs libselinux)" + SELINUX_LIBS_STATIC="$(pkg-config --libs --static libselinux)" fi ################################################################################ @@ -1208,49 +1196,6 @@ AC_CHECK_HEADERS(getopt.h, AC_DEFINE([HAVE_GETOPTLONG], 1, [Define to 1 if getopt_long is available.])) ################################################################################ -dnl -- Check for readline (Shamelessly copied from parted 1.4.17) -if test x$READLINE != xno; then - lvm_saved_libs=$LIBS - AC_SEARCH_LIBS([tgetent], [tinfo ncurses curses termcap termlib], - READLINE_LIBS=$ac_cv_search_tgetent, [ - if test "$READLINE" = yes; then - AC_MSG_ERROR( -[termcap could not be found which is required for the ---enable-readline option (which is enabled by default). Either disable readline -support with --disable-readline or download and install termcap from: - ftp.gnu.org/gnu/termcap -Note: if you are using precompiled packages you will also need the development - package as well (which may be called termcap-devel or something similar). -Note: (n)curses also seems to work as a substitute for termcap. This was - not found either - but you could try installing that as well.]) - fi]) - dnl -- Old systems may need extra termcap dependency explicitly in LIBS - AC_CHECK_LIB([readline], [readline], [ - AC_DEFINE([READLINE_SUPPORT], 1, - [Define to 1 to include the LVM readline shell.]) - dnl -- Try only with -lreadline and check for different symbol - LIBS=$lvm_saved_libs - AC_CHECK_LIB([readline], [rl_line_buffer], - [ READLINE_LIBS="-lreadline" ], [ - AC_MSG_RESULT([linking -lreadline with $READLINE_LIBS needed]) - READLINE_LIBS="-lreadline $READLINE_LIBS" - ]) ], [ - READLINE_LIBS= - if test "$READLINE" = yes; then - AC_MSG_ERROR( -[GNU Readline could not be found which is required for the ---enable-readline option (which is enabled by default). Either disable readline -support with --disable-readline or download and install readline from: - ftp.gnu.org/gnu/readline -Note: if you are using precompiled packages you will also need the development -package as well (which may be called readline-devel or something similar).]) - fi ]) - LIBS="$READLINE_LIBS $lvm_saved_libs" - AC_CHECK_FUNCS([rl_completion_matches]) - LIBS=$lvm_saved_libs -fi - -################################################################################ dnl -- Internationalisation stuff AC_MSG_CHECKING(whether to enable internationalisation) AC_ARG_ENABLE(nls, @@ -1338,7 +1283,8 @@ ################################################################################ dnl -- Ensure additional headers required if test x$READLINE = xyes; then - AC_CHECK_HEADERS(readline/readline.h readline/history.h,,AC_MSG_ERROR(bailing out)) + AC_CHECK_LIB([readline], [readline], [READLINE_LIBS="-lreadline"], AC_MSG_ERROR(bailing out)) + AC_DEFINE([READLINE_SUPPORT], 1, [Define to 1 to include the LVM readline shell.]) fi if test x$CLVMD != xnone; then @@ -1581,6 +1527,7 @@ AC_SUBST(SALCK_CFLAGS) AC_SUBST(SALCK_LIBS) AC_SUBST(SELINUX_LIBS) +AC_SUBST(SELINUX_LIBS_STATIC) AC_SUBST(SELINUX_PC) AC_SUBST(SNAPSHOTS) AC_SUBST(STATICDIR) debian/patches/install.patch0000664000000000000000000000654012151621435013313 0ustar --- a/make.tmpl.in +++ b/make.tmpl.in @@ -17,9 +17,10 @@ @SET_MAKE@ -CC ?= @CC@ +CC = @CC@ RANLIB = @RANLIB@ INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL@ -m 644 MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ LCOV = @LCOV@ @@ -74,8 +75,7 @@ tmpfiles_dir = $(DESTDIR)@tmpfilesdir@ ocf_scriptdir = $(DESTDIR)@OCFDIR@ -USRLIB_RELPATH = $(shell echo $(abspath $(usrlibdir) $(libdir)) | \ - $(AWK) -f $(top_srcdir)/scripts/relpath.awk) +USRLIB_RELPATH = @libdir@/ DEFAULT_SYS_DIR = @DEFAULT_SYS_DIR@ DEFAULT_ARCHIVE_DIR = $(DEFAULT_SYS_DIR)/@DEFAULT_ARCHIVE_SUBDIR@ @@ -99,22 +99,14 @@ endif # Handle installation of files -ifeq ("@WRITE_INSTALL@", "yes") -# leaving defaults -M_INSTALL_SCRIPT = -M_INSTALL_DATA = -m 644 -else -M_INSTALL_PROGRAM = -m 555 -M_INSTALL_DATA = -m 444 -endif -INSTALL_PROGRAM = $(INSTALL) $(M_INSTALL_PROGRAM) $(STRIP) -INSTALL_DATA = $(INSTALL) -p $(M_INSTALL_DATA) -INSTALL_WDATA = $(INSTALL) -p -m 644 +INSTALL_PROGRAM = $(INSTALL) +INSTALL_DATA = $(INSTALL) -m 644 +INSTALL_WDATA = $(INSTALL_DATA) INSTALL_DIR = $(INSTALL) -m 755 -d INSTALL_ROOT_DIR = $(INSTALL) -m 700 -d INSTALL_ROOT_DATA = $(INSTALL) -m 600 -INSTALL_SCRIPT = $(INSTALL) -p $(M_INSTALL_PROGRAM) +INSTALL_SCRIPT = $(INSTALL_PROGRAM) .SUFFIXES: .c .d .o .so .a .po .pot .mo .dylib @@ -346,17 +338,14 @@ $(INSTALL_DIR) $(usrlibdir) $(LN_S) -f $(USRLIB_RELPATH)$(= 0) { if (!S_ISBLK(info.st_mode)) { @@ -433,24 +440,33 @@ "node creation.", path); old_mask = umask(0); - if (mknod(path, S_IFBLK | mode, dev) < 0) { + if (mknod(tmppath, S_IFBLK | mode, dev) < 0) { umask(old_mask); log_error("Unable to make device node for '%s'", dev_name); - return 0; + goto error; } umask(old_mask); - if (chown(path, uid, gid) < 0) { + if (chown(tmppath, uid, gid) < 0) { log_sys_error("chown", path); - return 0; + goto error; } - log_debug("Created %s", path); + if (!dm_set_selinux_context(tmppath, S_IFBLK)) + goto error; - if (!dm_set_selinux_context(path, S_IFBLK)) - return 0; + if (rename(tmppath, path) < 0) { + log_error("Unable to replace device node for '%s'", dev_name); + goto error; + } + + log_debug("Created %s", path); return 1; + +error: + unlink(tmppath); + return 0; } static int _rm_dev_node(const char *dev_name, int check_udev) debian/patches/upstream-drop-udev_get_dev_path.patch0000664000000000000000000001445012151620076020120 0ustar From 06738cac051b671ed26bd137676713eab457b37f Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Tue, 29 May 2012 08:09:10 +0000 Subject: Remove unsupported udev_get_dev_path libudev call used for checking udev dir. With latest changes in the udev, some deprecated functions were removed from libudev amongst which there was the "udev_get_dev_path" function we used to compare a device directory used in udev and directore set in libdevmapper. The "/dev" is hardcoded in udev now (udev version >= 183). Amongst other changes and from packager's point of view, it's also important to note that the libudev development library ("libudev-devel") could now be a part of the systemd development library ("systemd-devel") because of the udev + systemd merge. --- diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c index 78f0801..cc23163 100644 --- a/lib/commands/toolcontext.c +++ b/lib/commands/toolcontext.c @@ -650,9 +650,9 @@ static int _init_dev_cache(struct cmd_context *cmd) { const struct dm_config_node *cn; const struct dm_config_value *cv; - size_t uninitialized_var(udev_dir_len), len; + size_t len, udev_dir_len = strlen(DM_UDEV_DEV_DIR); + int len_diff; int device_list_from_udev; - const char *uninitialized_var(udev_dir); init_dev_disable_after_error_count( find_config_tree_int(cmd, "devices/disable_after_error_count", @@ -661,13 +661,9 @@ static int _init_dev_cache(struct cmd_context *cmd) if (!dev_cache_init(cmd)) return_0; - if ((device_list_from_udev = udev_is_running() ? + device_list_from_udev = udev_is_running() ? find_config_tree_bool(cmd, "devices/obtain_device_list_from_udev", - DEFAULT_OBTAIN_DEVICE_LIST_FROM_UDEV) : 0)) { - if (!(udev_dir = udev_get_dev_dir())) - stack; - udev_dir_len = (udev_dir) ? strlen(udev_dir) : 0; - } + DEFAULT_OBTAIN_DEVICE_LIST_FROM_UDEV) : 0; init_obtain_device_list_from_udev(device_list_from_udev); if (!(cn = find_config_tree_node(cmd, "devices/scan"))) { @@ -688,11 +684,19 @@ static int _init_dev_cache(struct cmd_context *cmd) return 0; } - if (device_list_from_udev && udev_dir) { + if (device_list_from_udev) { len = strlen(cv->v.str); - len = udev_dir_len > len ? len : udev_dir_len; - if (strncmp(udev_dir, cv->v.str, len) || - udev_dir[len] != cv->v.str[len]) { + + /* + * DM_UDEV_DEV_DIR always has '/' at its end. + * If the item in the conf does not have it, be sure + * to make the right comparison without the '/' char! + */ + len_diff = len && cv->v.str[len - 1] != '/' ? + udev_dir_len - 1 != len : + udev_dir_len != len; + + if (len_diff || strncmp(DM_UDEV_DEV_DIR, cv->v.str, len)) { device_list_from_udev = 0; init_obtain_device_list_from_udev(0); } diff --git a/lib/misc/lvm-wrappers.c b/lib/misc/lvm-wrappers.c index 84f61a6..6cffae3 100644 --- a/lib/misc/lvm-wrappers.c +++ b/lib/misc/lvm-wrappers.c @@ -65,16 +65,6 @@ bad: return 0; } -const char *udev_get_dev_dir(void) -{ - if (!_udev) { - log_debug(_no_context_msg); - return NULL; - } - - return udev_get_dev_path(_udev); -} - struct udev* udev_get_library_context(void) { return _udev; @@ -96,10 +86,6 @@ int udev_is_running(void) return 0; } -const char *udev_get_dev_dir(void) -{ - return NULL; -} #endif int lvm_getpagesize(void) diff --git a/lib/misc/lvm-wrappers.h b/lib/misc/lvm-wrappers.h index f5b381c..e43f831 100644 --- a/lib/misc/lvm-wrappers.h +++ b/lib/misc/lvm-wrappers.h @@ -24,7 +24,6 @@ struct udev *udev_get_library_context(void); int udev_init_library_context(void); void udev_fin_library_context(void); int udev_is_running(void); -const char *udev_get_dev_dir(void); int lvm_getpagesize(void); diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index 7df4db8..1f780a3 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -1500,6 +1500,9 @@ struct dm_config_node *dm_config_clone_node(struct dm_config_tree *cft, const st struct dm_pool *dm_config_memory(struct dm_config_tree *cft); +/* Udev device directory. */ +#define DM_UDEV_DEV_DIR "/dev/" + /* Cookie prefixes. * * The cookie value consists of a prefix (16 bits) and a base (16 bits). diff --git a/tools/dmsetup.c b/tools/dmsetup.c index 6934de8..2787b76 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -1008,11 +1008,9 @@ static int _udevcookies(CMD_ARGS) #else /* UDEV_SYNC_SUPPORT */ static int _set_up_udev_support(const char *dev_dir) { - struct udev *udev; - const char *udev_dev_dir; - size_t udev_dev_dir_len; int dirs_diff; const char *env; + size_t len = strlen(dev_dir), udev_dir_len = strlen(DM_UDEV_DEV_DIR); if (_switches[NOUDEVSYNC_ARG]) dm_udev_set_sync_support(0); @@ -1030,14 +1028,6 @@ static int _set_up_udev_support(const char *dev_dir) " defined by --udevcookie option.", _udev_cookie); - if (!(udev = udev_new()) || - !(udev_dev_dir = udev_get_dev_path(udev)) || - !*udev_dev_dir) { - log_error("Could not get udev dev path."); - return 0; - } - udev_dev_dir_len = strlen(udev_dev_dir); - /* * Normally, there's always a fallback action by libdevmapper if udev * has not done its job correctly, e.g. the nodes were not created. @@ -1049,12 +1039,17 @@ static int _set_up_udev_support(const char *dev_dir) * is the same as "dev path" used by libdevmapper. */ - /* There's always a slash at the end of dev_dir. But check udev_dev_dir! */ - if (udev_dev_dir[udev_dev_dir_len - 1] != '/') - dirs_diff = strncmp(dev_dir, udev_dev_dir, udev_dev_dir_len); - else - dirs_diff = strcmp(dev_dir, udev_dev_dir); + /* + * DM_UDEV_DEV_DIR always has '/' at its end. + * If the dev_dir does not have it, be sure + * to make the right comparison without the '/' char! + */ + if (dev_dir[len - 1] != '/') + udev_dir_len--; + + dirs_diff = udev_dir_len != len || + strncmp(DM_UDEV_DEV_DIR, dev_dir, len); _udev_only = !dirs_diff && (_udev_cookie || !_switches[VERIFYUDEV_ARG]); if (dirs_diff) { @@ -1064,11 +1059,10 @@ static int _set_up_udev_support(const char *dev_dir) "about udev not working correctly while processing " "particular nodes will be suppressed. These nodes " "and symlinks will be managed in each directory " - "separately.", dev_dir, udev_dev_dir); + "separately.", dev_dir, DM_UDEV_DEV_DIR); dm_udev_set_checking(0); } - udev_unref(udev); return 1; } -- cgit v0.9.1 debian/patches/force-modprobe.patch0000664000000000000000000000071012151621435014541 0ustar --- a/configure.in +++ b/configure.in @@ -1316,11 +1316,7 @@ fi ################################################################################ -AC_PATH_PROG(MODPROBE_CMD, modprobe) - -if test x$MODPROBE_CMD != x; then - AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["$MODPROBE_CMD"], [The path to 'modprobe', if available.]) -fi +AC_DEFINE_UNQUOTED([MODPROBE_CMD], ["/sbin/modprobe"], [The path to 'modprobe', if available.]) lvm_exec_prefix=$exec_prefix debian/libdevmapper1.02.1.docs0000664000000000000000000000004211750751164013157 0ustar debian/changelog.Debian.devmapper debian/tree/0000775000000000000000000000000012215554167010137 5ustar debian/tree/lvm2/0000775000000000000000000000000012215554167011017 5ustar debian/tree/lvm2/usr/0000775000000000000000000000000012215554167011630 5ustar debian/tree/lvm2/usr/share/0000775000000000000000000000000012215554167012732 5ustar debian/tree/lvm2/usr/share/initramfs-tools/0000775000000000000000000000000012215554167016064 5ustar debian/tree/lvm2/usr/share/initramfs-tools/hooks/0000775000000000000000000000000012215554167017207 5ustar debian/tree/lvm2/usr/share/initramfs-tools/hooks/lvm20000775000000000000000000000142412215545753020017 0ustar #!/bin/sh PREREQ="udev" prereqs() { echo "$PREREQ" } case $1 in prereqs) prereqs exit 0 ;; esac if [ ! -x /sbin/lvm ]; then exit 0 fi . /usr/share/initramfs-tools/hook-functions if [ -e /etc/lvm/lvm.conf ]; then mkdir -p ${DESTDIR}/etc/lvm cp /etc/lvm/lvm.conf ${DESTDIR}/etc/lvm/ fi mkdir -p $DESTDIR/lib/udev/rules.d/ for rules in 56-lvm.rules 60-persistent-storage-lvm.rules 85-lvm2.rules; do if [ -e /etc/udev/rules.d/$rules ]; then cp -p /etc/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/ elif [ -e /lib/udev/rules.d/$rules ]; then cp -p /lib/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/ fi done copy_exec /sbin/dmsetup copy_exec /sbin/lvm ln -s lvm ${DESTDIR}/sbin/vgchange for x in dm_mod dm_snapshot dm_mirror dm_raid; do manual_add_modules ${x} done debian/tree/lvm2/usr/share/initramfs-tools/scripts/0000775000000000000000000000000012215554167017553 5ustar debian/tree/lvm2/usr/share/initramfs-tools/scripts/local-top/0000775000000000000000000000000012215554167021445 5ustar debian/tree/lvm2/usr/share/initramfs-tools/scripts/local-top/lvm20000775000000000000000000000176311750751164022261 0ustar #!/bin/sh PREREQ="mdadm mdrun multipath" prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac activate_vg() { local dev="$1" # Make sure that we have a non-empty argument if [ -z "$dev" ]; then return 1 fi # Take care of lilo boot arg, risky activating of all vg case "$dev" in fe[0-9]*) lvm vgchange -aly --ignorelockingfailure exit 0 ;; # FIXME: check major /dev/root) lvm vgchange -aly --ignorelockingfailure exit 0 ;; esac # Make sure that we have a d-m path dev="${dev#/dev/mapper/}" if [ "$dev" = "$1" ]; then return 1 fi eval $(dmsetup splitname --nameprefixes --noheadings --rows "$dev") if [ "$DM_VG_NAME" ] && [ "$DM_LV_NAME" ]; then lvm lvchange -aly --ignorelockingfailure "$DM_VG_NAME/$DM_LV_NAME" rc=$? if [ $rc = 5 ]; then echo "Unable to find LVM volume $DM_VG_NAME/$DM_LV_NAME" fi fi } if [ ! -e /sbin/lvm ]; then exit 0 fi modprobe -q dm-mod activate_vg "$ROOT" activate_vg "$resume" exit 0 debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/0000775000000000000000000000000012215554167022365 5ustar debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/lvm20000664000000000000000000000116511750751164023172 0ustar #!/bin/sh # init-premount script for lvm2. PREREQS="udev mdadm" prereqs() { echo $PREREQS } mountroot_fail() { if ! /sbin/lvm vgscan >/dev/null 2>&1 ; then cat <= 1.1) # # Set permissions for all encrypted devices created by cryptsetup (plain devices) # ENV{DM_UUID}=="CRYPT-PLAIN-?*", OWNER="root", GROUP="root", MODE="660" # Set permissions for all encrypted devices created by cryptsetup (LUKS extension) # ENV{DM_UUID}=="CRYPT-LUKS1-?*", OWNER="root", GROUP="root", MODE="660" # Set permissions for an encrypted device created by cryptsetup and having an exact luks UUID # ENV{DM_UUID}=="CRYPT-LUKS1-22fce5c8313c43c68d84b50a3b0fee78-?*", OWNER="root", GROUP="root", MODE="660" # MULTIPATH DEVICES # # Set permissions for all multipath devices # ENV{DM_UUID}=="mpath-?*", OWNER="root", GROUP="root", MODE="660" # Set permissions for first two partitions created on a multipath device (and detected by kpartx) # ENV{DM_UUID}=="part[1-2]-mpath-?*", OWNER="root", GROUP="root", MODE="660" debian/tree/dmsetup/usr/share/doc/dmsetup/README.udev0000664000000000000000000000071411750751164017604 0ustar The udev rules included into dmsetup are responsible for setting up the devices in /dev/mapper and also provides some environment variables for use by later rules: * DM_NAME Actual DM device's name * DM_UUID UUID set for DM device (blank if not specified) * DM_SUSPENDED Suspended state of DM device (0 or 1) Other device mapper using packages may define there own rules. For example lvm2, see /usr/share/doc/lvm2/README.udev for further informations. debian/tree/dmsetup/lib/0000775000000000000000000000000012215554167012366 5ustar debian/tree/dmsetup/lib/udev/0000775000000000000000000000000012215554167013331 5ustar debian/tree/dmsetup/lib/udev/rules.d/0000775000000000000000000000000012215554167014705 5ustar debian/tree/dmsetup/lib/udev/rules.d/55-dm.rules0000664000000000000000000001224612215547046016613 0ustar # Udev rules for device-mapper devices. # See /usr/share/doc/dmsetup/README.udev for further information. KERNEL=="device-mapper", NAME="mapper/control" # Decode udev control flags and set environment variables appropriately. # These flags are encoded in DM_COOKIE variable that was introduced in # kernel version 2.6.31. Therefore, we can use this feature with # kernels >= 2.6.31 only. ENV{DM_COOKIE}=="?*", IMPORT{program}="/sbin/dmsetup udevflags $env{DM_COOKIE}" ENV{DM_COOKIE}=="?*", RUN+="/sbin/dmsetup udevcomplete $env{DM_COOKIE}" SUBSYSTEM!="block", GOTO="dm_end" KERNEL!="dm-[0-9]*", GOTO="dm_end" # Device created, major and minor number assigned - "add" event generated. # Table loaded - no event generated. # Device resumed (or renamed) - "change" event generated. # Device removed - "remove" event generated. # # The dm-X nodes are always created, even on "add" event, we can't suppress # that (the node is created even earlier with devtmpfs). All the symlinks # (e.g. /dev/mapper) are created in right time after a device has its table # loaded and is properly resumed. For this reason, direct use of dm-X nodes # is not recommended. ACTION!="add|change", GOTO="dm_end" # Rule out easy-to-detect inappropriate events first. ENV{DISK_RO}=="1", GOTO="dm_disable" # There is no cookie set nor any flags encoded in events not originating # in libdevmapper so we need to detect this and try to behave correctly. # For such spurious events, regenerate all flags from current udev database content # (this information would normally be inaccessible for spurious ADD and CHANGE events). ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}=="1", GOTO="dm_flags_done" IMPORT{db}="DM_UDEV_DISABLE_DM_RULES_FLAG" IMPORT{db}="DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG" IMPORT{db}="DM_UDEV_DISABLE_DISK_RULES_FLAG" IMPORT{db}="DM_UDEV_DISABLE_OTHER_RULES_FLAG" IMPORT{db}="DM_UDEV_LOW_PRIORITY_FLAG" IMPORT{db}="DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG" IMPORT{db}="DM_UDEV_PRIMARY_SOURCE_FLAG" IMPORT{db}="DM_UDEV_FLAG7" IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG0" IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG1" IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG2" IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG3" IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG4" IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG5" IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG6" IMPORT{db}="DM_SUBSYSTEM_UDEV_FLAG7" IMPORT{db}="DM_UDEV_RULES" LABEL="dm_flags_done" # Normally, we operate on "change" events. But when coldplugging, there's an # "add" event present. We have to recognize this and do our actions in this # particular situation, too. Also, we don't want the nodes to be created # prematurely on "add" events while not coldplugging. We check # DM_UDEV_PRIMARY_SOURCE_FLAG to see if the device was activated correctly # before and if not, we ignore the "add" event totally. This way we can support # udev triggers generating "add" events (e.g. "udevadm trigger --action=add" or # "echo add > /sys/block//uevent"). The trigger with "add" event is # also used at boot to reevaluate udev rules for all existing devices activated # before (e.g. in initrd). If udev is used in initrd, we require the udev init # script to not remove the existing udev database so we can reuse the information # stored at the time of device activation in the initrd. ACTION=="add", ENV{DM_UDEV_PRIMARY_SOURCE_FLAG}!="1", GOTO="dm_disable" # "dm" sysfs subdirectory is available in newer versions of DM # only (kernels >= 2.6.29). We have to check for its existence # and use dmsetup tool instead to get the DM name, uuid and # suspended state if the "dm" subdirectory is not present. # The "suspended" item was added even later (kernels >= 2.6.31), # so we also have to call dmsetup if the kernel version used # is in between these releases. TEST=="dm", ENV{DM_NAME}="$attr{dm/name}", ENV{DM_UUID}="$attr{dm/uuid}", ENV{DM_SUSPENDED}="$attr{dm/suspended}" TEST!="dm", IMPORT{program}="/sbin/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o name,uuid,suspended" ENV{DM_SUSPENDED}!="?*", IMPORT{program}="/sbin/dmsetup info -j %M -m %m -c --nameprefixes --noheadings --rows -o suspended" # dmsetup tool provides suspended state information in textual # form with values "Suspended"/"Active". We translate it to # 0/1 respectively to be consistent with sysfs values. ENV{DM_SUSPENDED}=="Active", ENV{DM_SUSPENDED}="0" ENV{DM_SUSPENDED}=="Suspended", ENV{DM_SUSPENDED}="1" ENV{DM_UDEV_RULES}="1" ENV{DM_UDEV_DISABLE_DM_RULES_FLAG}!="1", ENV{DM_NAME}=="?*", SYMLINK+="mapper/$env{DM_NAME}" # We have to ignore further rule application for inappropriate events # and devices. But still send the notification if cookie exists. ENV{DM_UUID}=="mpath-?*", ENV{DM_ACTION}=="PATH_FAILED", GOTO="dm_disable" ENV{DM_UUID}=="CRYPT-TEMP-?*", GOTO="dm_disable" ENV{DM_UUID}!="?*", ENV{DM_NAME}=="temporary-cryptsetup-?*", GOTO="dm_disable" # Avoid processing and scanning a DM device in the other (foreign) # rules if it is in suspended state. However, we still keep 'disk' # and 'DM subsystem' related rules enabled in this case. ENV{DM_SUSPENDED}=="1", ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1" GOTO="dm_end" LABEL="dm_disable" ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}="1" ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}="1" ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}="1" OPTIONS:="nowatch" LABEL="dm_end" debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules0000664000000000000000000000164111750751164022445 0ustar # Udev rules for device-mapper devices. # See /usr/share/doc/dmsetup/README.udev for further information. ACTION!="add|change", GOTO="persistent_storage_dm_end" ENV{DM_UDEV_RULES}=="", GOTO="persistent_storage_dm_end" ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}=="1", GOTO="persistent_storage_dm_end" ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS="link_priority=-100" SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}" ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}" ENV{DM_SUSPENDED}=="1", GOTO="persistent_storage_dm_end" OPTIONS+="watch" IMPORT{program}="/sbin/blkid -o udev -p $tempnode" ENV{DM_UDEV_LOW_PRIORITY_FLAG}=="1", OPTIONS="link_priority=-100" ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}" LABEL="persistent_storage_dm_end" debian/dmsetup-udeb.install0000664000000000000000000000013611750751164013165 0ustar ../../tree/dmsetup/lib / ../../tree/dmsetup/usr/share/initramfs-tools /usr/share sbin/dmsetup debian/bin/0000775000000000000000000000000012215554167007750 5ustar debian/bin/genorig.py0000775000000000000000000000663411750751164011767 0ustar #!/usr/bin/env python import os, os.path, re, shutil, sys class Changelog(list): _rules = r""" ^ (?P \w[-+0-9a-z.]+ ) \ \( (?P [^\(\)\ \t]+ ) \) \s+ (?P [-+0-9a-zA-Z.]+ ) \; """ _re = re.compile(_rules, re.X) class Entry(object): __slot__ = 'distribution', 'source', 'version' def __init__(self, distribution, source, version): self.distribution, self.source, self.version = distribution, source, version def __init__(self, dir): f = file(os.path.join(dir, "debian/changelog")) while True: line = f.readline() if not line: break match = self._re.match(line) if not match: continue self.append(self.Entry(match.group('distribution'), match.group('source'), match.group('version'))) class GenOrig(object): log = sys.stdout.write def __init__(self, root, orig, input_tar, version): self.orig, self.input_tar, self.version = orig, input_tar, version changelog = Changelog(root) self.source = changelog[0].source def __call__(self): import tempfile self.dir = tempfile.mkdtemp(prefix = 'genorig', dir = 'debian') try: self.orig_dir = "%s-%s" % (self.source, self.version) self.orig_tar = "%s_%s.orig.tar.gz" % (self.source, self.version) self.do_upstream() self.do_orig() finally: shutil.rmtree(self.dir) def do_upstream(self): self.log("Extracting tarball %s\n" % self.input_tar) match = re.match(r'(^|.*/)(?P[^/]+)\.(t|tar\.)(?P(gz|bz2))$', self.input_tar) if not match: raise RuntimeError("Can't identify name of tarball") cmdline = ['tar -xf', self.input_tar, '-C', self.dir] extension = match.group('extension') if extension == 'bz2': cmdline.append('-j') elif extension == 'gz': cmdline.append('-z') if os.spawnv(os.P_WAIT, '/bin/sh', ['sh', '-c', ' '.join(cmdline)]): raise RuntimeError("Can't extract tarball") os.rename(os.path.join(self.dir, match.group('dir')), os.path.join(self.dir, self.orig_dir)) def do_orig(self): self.log("Generating tarball %s\n" % self.orig_tar) out = os.path.join(self.orig, self.orig_tar) try: os.mkdir(self.orig) except OSError: pass try: os.stat(out) except OSError: pass else: raise RuntimeError("Destination already exists (%s)" % out) cmdline = ['tar -czf', out, '-C', self.dir, self.orig_dir] try: if os.spawnv(os.P_WAIT, '/bin/sh', ['sh', '-c', ' '.join(cmdline)]): raise RuntimeError("Can't patch source") os.chmod(out, 0644) except: try: os.unlink(out) except OSError: pass raise if __name__ == '__main__': from optparse import OptionParser p = OptionParser(usage = "%prog TAR VERSION") options, args = p.parse_args(sys.argv) if len(args) < 2: raise RuntimeError("Need more arguments") root = os.path.realpath(os.path.join(sys.path[0], '..', '..')) orig = os.path.realpath(os.path.join(root, '..', 'orig')) input_tar = args[1] version = args[2] GenOrig(root, orig, input_tar, version)() debian/lvm2.examples0000664000000000000000000000001311750751164011611 0ustar doc/*.conf debian/rules0000775000000000000000000002426612215551652010266 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_CFLAGS_MAINT_STRIP = -O2 include /usr/share/dpkg/buildflags.mk SOURCE := $(shell dpkg-parsechangelog | sed -ne 's,^Source: *\(.*\)$$,\1,p') VERSION_COMPLETE := $(shell dpkg-parsechangelog | sed -ne 's,^Version: *\(.*\)$$,\1,p') VERSION_UPSTREAM := $(shell echo "$(VERSION_COMPLETE)" | sed -e 's,^[0-9]*:,,' -e 's,-[^-]*$$,,') VERSION_DEBIAN := $(shell echo "$(VERSION_COMPLETE)" | sed -e 's,^[^-]*-,,') DEVMAPPER_ABINAME = 1.02.1 DEVMAPPER_VERSION_PLAIN = $(shell awk '{print $$1}' VERSION_DM) DEVMAPPER_VERSION = 2:$(DEVMAPPER_VERSION_PLAIN) DEVMAPPER_VERSION_DEBIAN = $(DEVMAPPER_VERSION)-$(VERSION_DEBIAN) DEVMAPPER_VERSION_FILE = $(DEVMAPPER_VERSION_PLAIN)-$(VERSION_DEBIAN) LVM2APP_ABINAME = 2.2 LVM2CMD_ABINAME = 2.02 MAKE_REAL := $(MAKE) -j1 MAKE_SELF := $(MAKE) -f debian/rules BUILD_DIR = debian/build STAMPS_DIR = debian/stamps ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS_OPT_DEB = -O2 CFLAGS_OPT_UDEB = -Os endif CONFIGURE = ./configure \ CC=gcc CFLAGS="$(CPPFLAGS) $(CFLAGS)" LDFLAGS="$(LDFLAGS)" CLDFLAGS="$(LDFLAGS)" \ --build $(DEB_BUILD_GNU_TYPE) ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) CONFIGURE += --host $(DEB_HOST_GNU_TYPE) endif CONFIGURE += \ --prefix=/usr \ --exec-prefix= \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ --with-confdir=\$${exec_prefix}/etc ifneq (,$(findstring $(DEB_HOST_ARCH), arm armeb hppa mips mipsel)) CONFIGURE_FLAGS += --disable-o_direct endif source: $(STAMPS_DIR)/source $(STAMPS_DIR)/source: SOURCE_FILES = $(filter-out debian .svn, $(wildcard * .[^.]*)) $(STAMPS_DIR)/source: DIR = $(BUILD_DIR)/source $(STAMPS_DIR)/source: @mkdir -p $(STAMPS_DIR) rm -rf $(DIR) mkdir -p '$(DIR)' cp -al $(SOURCE_FILES) '$(DIR)' cd $(DIR); autoreconf cd $(DIR); cp -f /usr/share/misc/config.guess /usr/share/misc/config.sub autoconf/ touch $@ setup: $(STAMPS_DIR)/setup_deb $(STAMPS_DIR)/setup_udeb $(STAMPS_DIR)/setup_deb: SOURCE_DIR = $(BUILD_DIR)/source $(STAMPS_DIR)/setup_deb: DIR = $(BUILD_DIR)/build_deb $(STAMPS_DIR)/setup_deb: $(STAMPS_DIR)/source rm -rf $(DIR) cp -al '$(SOURCE_DIR)' '$(DIR)' cd $(DIR); \ $(CONFIGURE) \ --libdir=\$${exec_prefix}/lib/$(DEB_HOST_MULTIARCH) \ --with-optimisation="$(CFLAGS_OPT_DEB)" \ --with-clvmd=corosync \ --with-cluster=internal \ --with-device-uid=0 \ --with-device-gid=6 \ --with-device-mode=0660 \ --with-default-run-dir=/run/lvm \ --with-default-locking-dir=/run/lock/lvm \ --with-thin=internal \ --with-thin-check=/usr/sbin/thin_check \ --enable-applib \ --enable-cmdlib \ --enable-dmeventd \ --enable-pkgconfig \ --enable-readline \ --enable-udev_sync cp po/lvm2.po po/lvm2.pot touch $@ $(STAMPS_DIR)/setup_udeb: SOURCE_DIR = $(BUILD_DIR)/source $(STAMPS_DIR)/setup_udeb: DIR = $(BUILD_DIR)/build_udeb $(STAMPS_DIR)/setup_udeb: $(STAMPS_DIR)/source rm -rf $(DIR) cp -al '$(SOURCE_DIR)' '$(DIR)' cd $(DIR); \ $(CONFIGURE) \ --with-optimisation="$(CFLAGS_OPT_UDEB)" \ --with-cluster=none \ --with-lvm1=none \ --with-pool=none \ --disable-dmeventd \ --disable-readline \ --disable-selinux touch $@ build: build-arch build-indep build-arch: $(STAMPS_DIR)/build_deb $(STAMPS_DIR)/build_udeb build-indep: build_deb: $(STAMPS_DIR)/build_deb build_udeb: $(STAMPS_DIR)/build_udeb $(STAMPS_DIR)/build_%: DIR = $(BUILD_DIR)/build_$* $(STAMPS_DIR)/build_%: $(STAMPS_DIR)/setup_% dh_testdir +$(MAKE_REAL) -C $(DIR) LIB_VERSION_DM=$(DEVMAPPER_ABINAME) touch $@ $(BUILD_DIR) $(STAMPS_DIR): @[ -d $@ ] || mkdir $@ maintainerclean: rm -rf $(filter-out .svn .svk debian, $(wildcard * .[^.]*)) clean: dh_testdir rm -rf $(BUILD_DIR) $(STAMPS_DIR) dh_clean rm -f po/lvm2.pot $(STAMPS_DIR)/install_%: DIR = $(BUILD_DIR)/build_$* $(STAMPS_DIR)/install_%: INSTALL_DIR = $(BUILD_DIR)/install_$* $(STAMPS_DIR)/install_%: $(STAMPS_DIR)/build_% dh_testdir dh_testroot rm -rf $(INSTALL_DIR) +$(MAKE_REAL) -C $(DIR) install DESTDIR=$(CURDIR)/$(INSTALL_DIR) LIB_VERSION_DM=$(DEVMAPPER_ABINAME) touch $@ install-base-prep: dh_testdir dh_testroot dh_prep dh_install -X .svn --sourcedir=$(INSTALL_DIR) install-base: dh_installchangelogs $(if $(CHANGELOG),$(CHANGELOG),WHATS_NEW) dh_installdebconf dh_installdocs dh_installexamples dh_installman dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol -- $(GENCONTROL_ARGS) dh_md5sums dh_builddeb $(BUILDDEB_ARGS) install_clvm: export DH_OPTIONS = -pclvm install_clvm: DIR = $(BUILD_DIR)/install_deb install_clvm: $(STAMPS_DIR)/install_deb mkdir -p $(BUILD_DIR)/install_deb/usr/lib/ocf/resource.d/lvm2 install -m 755 debian/clvmd.ra $(BUILD_DIR)/install_deb/usr/lib/ocf/resource.d/lvm2/clvmd +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' dh_installinit --no-start -- start 63 S . start 51 0 6 . +$(MAKE_SELF) install-base install_dmeventd: export DH_OPTIONS = -pdmeventd install_dmeventd: DIR = $(BUILD_DIR)/install_deb install_dmeventd: $(STAMPS_DIR)/install_deb install_liblvm2 +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' +$(MAKE_SELF) install-base CHANGELOG=WHATS_NEW_DM GENCONTROL_ARGS="-v$(DEVMAPPER_VERSION_DEBIAN)" install_dmsetup: export DH_OPTIONS = -pdmsetup install_dmsetup: DIR = $(BUILD_DIR)/install_deb install_dmsetup: $(STAMPS_DIR)/install_deb install_libdevmapper +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' chmod +x -R debian/dmsetup/usr/share/initramfs-tools +$(MAKE_SELF) install-base CHANGELOG=WHATS_NEW_DM GENCONTROL_ARGS="-v$(DEVMAPPER_VERSION_DEBIAN)" install_dmsetup-udeb: PACKAGE_NAME = dmsetup-udeb install_dmsetup-udeb: export DH_OPTIONS = -p$(PACKAGE_NAME) install_dmsetup-udeb: PACKAGE_FILE = $(PACKAGE_NAME)_$(DEVMAPPER_VERSION_FILE)_$(DEB_HOST_ARCH).udeb install_dmsetup-udeb: DIR = $(BUILD_DIR)/install_udeb install_dmsetup-udeb: $(STAMPS_DIR)/install_udeb install_libdevmapper +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' chmod +x -R debian/dmsetup-udeb/usr/share/initramfs-tools +$(MAKE_SELF) install-base \ BUILDDEB_ARGS="--filename=$(PACKAGE_FILE)" \ GENCONTROL_ARGS="-v$(DEVMAPPER_VERSION_DEBIAN)" install_libdevmapper: export DH_OPTIONS = -plibdevmapper$(DEVMAPPER_ABINAME) install_libdevmapper: DIR = $(BUILD_DIR)/install_deb install_libdevmapper: $(STAMPS_DIR)/install_deb +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' dh_makeshlibs \ --add-udeb 'libdevmapper$(DEVMAPPER_ABINAME)-udeb' \ "-Vlibdevmapper$(DEVMAPPER_ABINAME) (>= $(DEVMAPPER_VERSION))" \ -- "-v$(DEVMAPPER_VERSION_DEBIAN)" -c2 +$(MAKE_SELF) install-base CHANGELOG=WHATS_NEW_DM GENCONTROL_ARGS="-v$(DEVMAPPER_VERSION_DEBIAN)" install_libdevmapper-event: export DH_OPTIONS = -plibdevmapper-event$(DEVMAPPER_ABINAME) install_libdevmapper-event: DIR = $(BUILD_DIR)/install_deb install_libdevmapper-event: $(STAMPS_DIR)/install_deb +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' dh_makeshlibs \ "-Vlibdevmapper-event$(DEVMAPPER_ABINAME) (>= $(DEVMAPPER_VERSION))" \ -- "-v$(DEVMAPPER_VERSION_DEBIAN)" -c2 +$(MAKE_SELF) install-base CHANGELOG=WHATS_NEW_DM GENCONTROL_ARGS="-v$(DEVMAPPER_VERSION_DEBIAN)" install_libdevmapper-dev: export DH_OPTIONS = -plibdevmapper-dev install_libdevmapper-dev: DIR = $(BUILD_DIR)/install_deb install_libdevmapper-dev: $(STAMPS_DIR)/install_deb mkdir -p $(DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig mv $(DIR)/usr/lib/pkgconfig/devmapper* $(DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' dh_link -p libdevmapper-dev \ lib/$(DEB_HOST_MULTIARCH)/libdevmapper-event.so.$(DEVMAPPER_ABINAME) usr/lib/$(DEB_HOST_MULTIARCH)/libdevmapper-event.so \ lib/$(DEB_HOST_MULTIARCH)/libdevmapper.so.$(DEVMAPPER_ABINAME) usr/lib/$(DEB_HOST_MULTIARCH)/libdevmapper.so +$(MAKE_SELF) install-base CHANGELOG=WHATS_NEW_DM GENCONTROL_ARGS="-v$(DEVMAPPER_VERSION_DEBIAN)" install_libdevmapper-udeb: PACKAGE_NAME = libdevmapper$(DEVMAPPER_ABINAME)-udeb install_libdevmapper-udeb: export DH_OPTIONS = -p$(PACKAGE_NAME) install_libdevmapper-udeb: PACKAGE_FILE = $(PACKAGE_NAME)_$(DEVMAPPER_VERSION_FILE)_$(DEB_HOST_ARCH).udeb install_libdevmapper-udeb: DIR = $(BUILD_DIR)/install_udeb install_libdevmapper-udeb: $(STAMPS_DIR)/install_udeb +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' +$(MAKE_SELF) install-base \ BUILDDEB_ARGS="--filename=$(PACKAGE_FILE)" \ GENCONTROL_ARGS="-v$(DEVMAPPER_VERSION_DEBIAN)" install_liblvm2: export DH_OPTIONS = -pliblvm2app$(LVM2APP_ABINAME) -pliblvm2cmd$(LVM2CMD_ABINAME) -pliblvm2-dev install_liblvm2: DIR = $(BUILD_DIR)/install_deb install_liblvm2: $(STAMPS_DIR)/install_deb install_libdevmapper +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' dh_makeshlibs -V -- -c2 +$(MAKE_SELF) install-base install_lvm2: export DH_OPTIONS = -plvm2 install_lvm2: DIR = $(BUILD_DIR)/install_deb install_lvm2: $(STAMPS_DIR)/install_deb +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' rm -rf debian/lvm2/usr/share/initramfs-tools/scripts/local-top chmod +x -R debian/lvm2/usr/share/initramfs-tools +$(MAKE_SELF) install-base install_lvm2-udeb: export DH_OPTIONS = -plvm2-udeb install_lvm2-udeb: DIR = $(BUILD_DIR)/install_udeb install_lvm2-udeb: $(STAMPS_DIR)/install_udeb +$(MAKE_SELF) install-base-prep INSTALL_DIR='$(DIR)' chmod +x -R debian/lvm2-udeb/usr/share/initramfs-tools +$(MAKE_SELF) install-base binary-indep: binary-arch: $(addprefix install_,libdevmapper libdevmapper-udeb libdevmapper-event libdevmapper-dev dmsetup dmsetup-udeb dmeventd liblvm2 lvm2 lvm2-udeb clvm) binary: binary-indep binary-arch DIR_ORIG = ../orig/$(SOURCE)-$(VERSION_UPSTREAM) TAR_ORIG_NAME = $(SOURCE)_$(VERSION_UPSTREAM).orig.tar.gz TAR_ORIG = $(firstword $(wildcard ../$(TAR_ORIG_NAME)) $(wildcard ../orig/$(TAR_ORIG_NAME))) orig: $(DIR_ORIG) rsync --delete --exclude debian --exclude .svk --exclude .svn -a $(DIR_ORIG)/ . $(DIR_ORIG): ifeq ($(TAR_ORIG),) $(error Cannot find orig tarball $(TAR_ORIG_NAME)) else mkdir -p ../orig tar -C ../orig -xzf $(TAR_ORIG) endif .PHONY: build clean binary-indep binary-arch binary install configure debian/libdevmapper1.02.1-udeb.install0000664000000000000000000000002611750751164014614 0ustar lib/libdevmapper.so.* debian/changelog.Debian.devmapper0000664000000000000000000004074111750751164014222 0ustar devmapper (2:1.02.27-4) unstable; urgency=low * Set link priority to 100 for dmraid devices. (closes: #498838) -- Bastian Blank Wed, 01 Oct 2008 16:14:32 +0200 devmapper (2:1.02.27-3) unstable; urgency=low * Fix jump to undefined label in udev rules. (closes: #491107) -- Bastian Blank Thu, 17 Jul 2008 11:14:48 +0200 devmapper (2:1.02.27-2) unstable; urgency=low * Update dmsetup export patch to export target types. (closes: #486780) * Add udev rules to dmsetup. (closes: #455746) -- Bastian Blank Wed, 16 Jul 2008 00:00:31 +0200 devmapper (2:1.02.27-1) unstable; urgency=low * New upstream version. (closes: #488981) * Update dm_report symbols. * Only ignore known VCS dirs. (closes: #482744) -- Bastian Blank Sun, 06 Jul 2008 15:07:56 +0200 devmapper (2:1.02.26-1) unstable; urgency=low * New upstream version. * Update symbols files. * Update dmsetup export patch. -- Bastian Blank Sun, 22 Jun 2008 10:54:09 +0200 devmapper (2:1.02.25-1) unstable; urgency=low * New upstream version. -- Bastian Blank Sun, 18 May 2008 14:34:03 +0200 devmapper (2:1.02.24-4) unstable; urgency=low * Add symbols file for libdevmapper1.02. * Add modified version of atomic device creation patch. (closes: #455745) * Add modified version of dmsetup export patch. (closes: #434241) -- Bastian Blank Mon, 10 Mar 2008 22:16:48 +0100 devmapper (2:1.02.24-3) unstable; urgency=low * Always export selinux function. -- Bastian Blank Tue, 08 Jan 2008 16:45:10 +0000 devmapper (2:1.02.24-2) unstable; urgency=low * Build depend against automake. -- Bastian Blank Wed, 02 Jan 2008 18:42:07 +0000 devmapper (2:1.02.24-1) unstable; urgency=low * New upstream version. (closes: #457972) * Use linux-2.6 style orig handling. * Reduce linked libs to minimum. * Remove init script. (closes: #361358, #375340, #384900, #419958) * Cleanup udeb relations. (closes: #419604) * Fix pkgconfig file for static linking. (closes: #390243) * Supply proper --host and --build args to configure. (closes: #451136) * Fix copyright file. * Update standards version to 3.7.3, no changes. -- Bastian Blank Wed, 02 Jan 2008 14:42:20 +0000 devmapper (2:1.02.20-2) unstable; urgency=low * Add version to shlibs. (closes: #431735) * Woraround kernel headers. -- Bastian Blank Fri, 6 Jul 2007 08:40:12 +0000 devmapper (2:1.02.20-1) unstable; urgency=low * New upstream version. - Fix include guards. (closes: #426900) -- Bastian Blank Fri, 22 Jun 2007 11:14:47 +0000 devmapper (2:1.02.18-1) unstable; urgency=low * New upstream version. * Bump abiname. -- Bastian Blank Sun, 8 Apr 2007 17:52:34 +0000 devmapper (2:1.02.12-1) unstable; urgency=low * New upstream version. - Don't suspend device which is already suspended. -- Bastian Blank Sat, 2 Dec 2006 16:54:38 +0000 devmapper (2:1.02.08-1) unstable; urgency=medium * New upstream version. - Fix corelog segment line. (closes: #376283) -- Bastian Blank Tue, 8 Aug 2006 22:05:44 +0000 devmapper (2:1.02.07-1) unstable; urgency=low * New upstream version. * Update priorities to match overrides. * Acknowledge NMU. (closes: #316883, #329409, #341901, #342455) -- Bastian Blank Sat, 10 Jun 2006 21:20:43 +0000 devmapper (2:1.02.05-2.1) unstable; urgency=low * Non-maintainer upload. * Set default device modes to 0, 6, 0660, according to the decision of the technical committee, http://lists.debian.org/debian-ctte/2006/04/msg00033.html Closes: #316883, #329409, #341901, #342455 LVM devices are created with root:disk ownership and 0660 permissions, which is used by all other disk block devices. This allows backups of LVM logical volumes with tools such as amanda, which run as user backup, a member of the disk group. Thanks for Roger Leigh for preparing the patch. -- Andreas Barth Sun, 4 Jun 2006 20:15:33 +0200 devmapper (2:1.02.05-2) unstable; urgency=low * Generate udeb shlibs entries. (closes: #356906) * Set default device modes to 0, 6, 0644. (closes: #304476) -- Bastian Blank Sat, 13 May 2006 14:44:47 +0000 devmapper (2:1.02.05-1) unstable; urgency=low * New upstram version. * Install pkgconfig file. (closes: #355927) -- Bastian Blank Fri, 5 May 2006 20:40:42 +0000 devmapper (2:1.02.03-1) unstable; urgency=low * New upstram version. * Make device modes overridable. -- Bastian Blank Sun, 12 Feb 2006 11:45:49 +0100 devmapper (2:1.02.02-1) unstable; urgency=low * New upstram version. - Use names instead of numbers in messages when ioctls fail. (closes: #341452) -- Bastian Blank Fri, 02 Dec 2005 20:16:55 +0100 devmapper (2:1.02.00-1) unstable; urgency=low * New upstream version. (closes: #338947) -- Bastian Blank Thu, 24 Nov 2005 20:07:41 +0100 devmapper (2:1.01.05-1) unstable; urgency=low * Readd init script to load the device-mapper module. (closes: #330549, #315161, #298406) -- Bastian Blank Thu, 29 Sep 2005 18:58:31 +0200 devmapper (2:1.01.04-2) unstable; urgency=low * Enable selinux support for debs. (closes: #323022) * Change optimization for udebs. (closes: #314360) -- Bastian Blank Sun, 14 Aug 2005 11:14:54 +0200 devmapper (2:1.01.04-1) unstable; urgency=low * New upstream version. * Explicitly disable selinux support. (blocked by #322891) -- Bastian Blank Sat, 13 Aug 2005 13:16:31 +0200 devmapper (2:1.01.03-1) unstable; urgency=low * New upstream version. * Remove init script, libdevmapper creates the device themself. -- Bastian Blank Sun, 19 Jun 2005 13:41:08 +0200 devmapper (2:1.01.00-4) unstable; urgency=low * Build static libs. * Remove the wrong dh_python call. -- Bastian Blank Mon, 14 Mar 2005 19:43:32 +0100 devmapper (2:1.01.00-3) unstable; urgency=low * Don't longer use cdbs. * Remove many cruft. -- Bastian Blank Mon, 14 Mar 2005 13:55:47 +0100 devmapper (2:1.01.00-2) unstable; urgency=high * New maintainer. * Fix initscript links. (closes: #299013) -- Bastian Blank Fri, 11 Mar 2005 08:29:31 +0100 devmapper (2:1.01.00-1) unstable; urgency=low * New upstream * Set permission on control device to 0660 Closes: #294260 -- Patrick Caulfield Mon, 14 Feb 2005 09:20:23 +0000 devmapper (2:1.00.19-4) unstable; urgency=low * Cope with single/multiple spaces in "ls" output when checking device. Closes: #273273 -- Patrick Caulfield Sun, 17 Oct 2004 11:01:00 +0100 devmapper (2:1.00.19-3) unstable; urgency=low * Remove kernel-patch-devmapper as it is now incorporated in the Debian kernel. Closes: #262347, #272384 * Remove XSI:ism (what ever that is) from init script. Closes: #258853 -- Patrick Caulfield Mon, 20 Sep 2004 08:01:42 +0100 devmapper (2:1.00.19-2) unstable; urgency=low * Don't error on startup of /dev/mapper directory does not exist. Closes: #259314 -- Patrick Caulfield Thu, 15 Jul 2004 11:52:38 +0100 devmapper (2:1.00.19-1) unstable; urgency=low * New upstream version(s). Closes: #257958 * Don't build debian-speciif patches as dm is now in the Debian kernels Closes: #247004, #252168 * Don't recreate /dev/mapper/control if it hasn't changed. Closes: #257106 * Add dmsetup udeb Closes: #241385 -- Patrick Caulfield Wed, 7 Jul 2004 14:42:34 +0100 devmapper (2:1.00.17-5) unstable; urgency=low * Take over maintainership. * recreate the /dev/mapper/control device at each reboot in case the minor number changes. Closes: #236735 -- Patrick Caulfield Tue, 1 Jun 2004 11:13:55 +0100 devmapper (2:1.00.17-4) unstable; urgency=low * The DAM-approval-process-sucks release. * Fix missing autoconf build-dep (closes: #249476). -- Andres Salomon Mon, 17 May 2004 22:35:26 -0400 devmapper (2:1.00.17-3) unstable; urgency=low * Fix autoconf check for selinux build environment (closes: #248656). -- Andres Salomon Mon, 17 May 2004 03:20:52 -0400 devmapper (2:1.00.17-2) unstable; urgency=low * Add a little blurb about the removal of VFS locking patch in README.Debian. By popular request. * Have libdevmapper1.00-udeb provide libdevmapper1.00 (closes: #248238). -- Andres Salomon Mon, 10 May 2004 02:07:12 -0400 devmapper (2:1.00.17-1) unstable; urgency=low * New upstream release. * Update kernel patches, ensure VFS lock patch is applied (closes: #245748). * Move dmsetup binary into /sbin (closes: #247053). * Add 002-lfs.patch; compile w/ -D_FILE_OFFSET_BITS=64. -- Andres Salomon Sat, 01 May 2004 23:55:01 -0400 devmapper (2:1.00.15-1) unstable; urgency=low * New upstream release (closes: #242514). * Update copyright file. * Drop 2.4.22 kernel patch. This rids us of the need for a separate VFS-lock patch. * Add 2.4.25 kernel patch (closes: #241097). * Add init script for libdevmapper (closes: #233624). * Doc updates, cleanups, and added a README.Debian (closes: #234488). * Update kernel headers to 2.4.25. -- Andres Salomon Thu, 08 Apr 2004 03:16:45 -0400 devmapper (2:1.00.07-4) unstable; urgency=low * Acknowledge NMU. * Add udeb for debian-installer. * Add 2.4.24 devmapper patch, taken from Joe Thornber's 2.4.23-pre7 patch. Note that this also includes the VFS-locking patch. (Closes: #228017) * Add 2.4.24 devmapper patch for Debian; this one is based on the normal 2.4.24 patch, but applies to Debian's 2.4.24-2 kernel. (Closes: #230015) * Drop 2.4.20 and 2.4.21 patches; those kernels are deprecated and insecure. (Closes: #205862) * Add versioned build-dep for cdbs. -- Andres Salomon Sat, 14 Feb 2004 18:56:08 -0500 devmapper (2:1.00.07-3.1) unstable; urgency=low * Non-maintainer upload * Include VFS-lock patch (Closes: #224829) -- Matt Zimmerman Mon, 22 Dec 2003 13:28:25 -0800 devmapper (2:1.00.07-3) unstable; urgency=low * Add explicit dependency upon linux-kernel-headers. (Closes: #223629) * Build-depend upon autotools-dev so that cdbs can find an updated config.{sub,guess}. (Closes: #223697) -- Andres Salomon Sun, 14 Dec 2003 19:30:54 -0500 devmapper (2:1.00.07-2) unstable; urgency=low * Enable v1 ioctls compatibility. (Closes: #223414) -- Andres Salomon Tue, 09 Dec 2003 10:36:38 -0500 devmapper (2:1.00.07-1) unstable; urgency=low * New upstream release. * Remove 001-2.4.22-dm1.patch (now included upstream). * Change kernel-patch-device-mapper's arch type to all; thanks to Philipp Matthias Hahn for pointing this out. (Closes: #216187) * Tell cdbs the proper directory for config.{sub,guess}. -- Andres Salomon Sun, 30 Nov 2003 01:50:06 -0500 devmapper (2:1.00.05-3) unstable; urgency=low * Fix problem w/ dm patch on sparc64. (Closes: #213446) * Update standards-version. * Remove CFLAGS patch, as cdbs now doesn't clobber CFLAGS (yay!). -- Andres Salomon Wed, 15 Oct 2003 00:57:12 -0400 devmapper (2:1.00.05-2) unstable; urgency=low * Fix PIC problem due to cdbs clobbering CFLAGS. (Closes: #212023) -- Andres Salomon Sat, 27 Sep 2003 16:00:59 -0400 devmapper (2:1.00.05-1) unstable; urgency=low * New upstream version. * Change build system to use cdbs. * Add 2.4.22 device-mapper patch. (Closes: #210447) * Add versioned build-dep for dh-kpatches (see bug #204160). -- Andres Salomon Thu, 18 Sep 2003 01:00:28 -0400 devmapper (2:1.00.03-1) unstable; urgency=low * New upstream version. -- Andres Salomon Fri, 22 Aug 2003 00:50:48 -0400 devmapper (2:1.00.02-2) unstable; urgency=low * Add epoch. * Fix typo in description. (Closes: #202727) -- Andres Salomon Sat, 19 Jul 2003 19:32:37 -0400 devmapper (1.00.02-1) unstable; urgency=low * New upstream version. * Update standards-version. -- Andres Salomon Sat, 19 Jul 2003 19:32:37 -0400 devmapper (1.00.02rc3-1) unstable; urgency=low * New upstream version. -- Andres Salomon Mon, 14 Jul 2003 00:50:42 -0400 devmapper (1.00.01rc2-1) unstable; urgency=low * New upstream version. * Update kernel patch, headers, and header scripts; 2.4.20 and 2.4.21 patches are now included. * New 1.00 SONAME, updated lib accordingly. -- Andres Salomon Wed, 09 Jul 2003 01:12:50 -0400 devmapper (0.96.08-1) unstable; urgency=low * New upstream version. * Update maintainer email address. * Rename libdevmapper0 to match SONAME. (Closes: #197438) * Remove libdevmapper modutils dependency and lvm2 postinst stuff; working towards a proper lvm2/lvm10/dm relationship. (Closes: #194907) * Update kernel patch and headers; 2.4.19 and 2.4.20 patches are now included. * Update standards-version and libdevmapper-dev's section. * Change SONAME stuff to work around ldconfig weirdness, and various other fixes. -- Andres Salomon Sat, 07 Jun 2003 18:00:03 -0400 devmapper (0.96.07-1) unstable; urgency=low * New upstream version. (Closes: #171671) * Char signedness assumption fixed. (Closes: #163825) * Remove types.h inclusion fix from 2.4.19 kernel patch; committed upstream. * debian/copyright fix to appease lintian. -- Andres Salomon Mon, 9 Dec 2002 02:16:28 -0400 devmapper (0.96.04-2) unstable; urgency=low * Make the new version of dh-kpatches happy. (Closes: #160927) * Make header-update makefile rule consistent w/ my other packages, and update headers for good measure. -- Andres Salomon Sat, 21 Sep 2002 17:29:07 -0400 devmapper (0.96.04-1) unstable; urgency=low * New upstream release (Beta5). * Update kernel headers to 2.4.19. * Update kpatch to 2.4.19. -- Andres Salomon Thu, 15 Aug 2002 00:26:20 -0400 devmapper (0.95.07-3) unstable; urgency=low * Move libdevmapper0 libs to /lib. (Closes: #146237) * Remove dependency on fileutils, to shut lintian up. -- Andres Salomon Sun, 12 May 2002 03:20:54 -0500 devmapper (0.95.07-2) unstable; urgency=low * Fix link error on hppa, due to lack of -fPIC. (Closes: #144792) * Fix postinst error in libdevmapper0. (Closes: #144889) * Updated depends (removed patch, bzip2, added modutils, fileutils). -- Andres Salomon Sun, 28 Apr 2002 14:26:59 -0500 devmapper (0.95.07-1) unstable; urgency=low * New release (Beta2). * Remove 2.4.16 and 2.4.17 patches from kpatches. * Reworked the build system to supply its own headers, instead of depending upon kernel-source packages. Makes building much faster. * Added scripts/ directory, and scripts to keep kernel headers up-to-date. -- Andres Salomon Thu, 25 Apr 2002 01:01:41 -0500 devmapper (0.95.06-1) unstable; urgency=low * New release. -- Andres Salomon Wed, 3 Apr 2002 00:02:12 -0500 devmapper (0.95.05-1) unstable; urgency=low * New release; ext3 support and 2.4.18 patches now included. * Drop the cvs suffix from version. -- Andres Salomon Fri, 15 Mar 2002 01:03:25 -0500 devmapper (0.95.03cvs20020306-1) unstable; urgency=low * New Release. * Convert from debian native package. -- Andres Salomon Wed, 6 Mar 2002 00:29:39 -0500 devmapper (0.95.02cvs20020304) unstable; urgency=low * CVS update. * Renamed libdevmapper package to libdevmapper0. * Added postinst script for creating devmapper control device. -- Andres Salomon Mon, 4 Mar 2002 02:23:48 -0500 devmapper (0.95.02cvs20020218) unstable; urgency=low * Initial Release. * device-mapper broken up into libdevmapper1, libdevmapper-dev, dmsetup, and kernel-patch-device-mapper. -- Andres Salomon Mon, 18 Feb 2002 15:46:08 -0500 debian/clvm.examples0000664000000000000000000000003212215547046011672 0ustar scripts/clvmd_fix_conf.sh debian/clvm.install0000664000000000000000000000011312215550173011515 0ustar usr/sbin/clvmd usr/share/man/man8/clvmd* usr/lib/ocf/resource.d/lvm2/clvmd debian/dmsetup.install0000664000000000000000000000010111750751164012240 0ustar ../../tree/dmsetup/* / sbin/dmsetup usr/share/man/man8/dmsetup.8 debian/liblvm2app2.2.install0000664000000000000000000000003012102766326013050 0ustar lib/*/liblvm2app.so.2.2 debian/libdevmapper-event1.02.1.install0000664000000000000000000000003612102766326015015 0ustar lib/*/libdevmapper-event.so.* debian/lvm2.prerm0000664000000000000000000000016611750751164011131 0ustar #!/bin/sh set -e case "$1" in remove) vgcfgbackup >/dev/null 2>&1 || : ;; esac #DEBHELPER# exit 0 debian/control0000664000000000000000000002013612215553044010576 0ustar Source: lvm2 Section: admin Priority: optional Maintainer: Ubuntu Core Developers XSBC-Original-Maintainer: Debian LVM Team Uploaders: Bastian Blank Build-Depends: dpkg-dev (>= 1.16.1~), debhelper (>= 8.1.3~), automake, libcorosync-dev, libdlm-dev (>> 2), libreadline-gplv2-dev, libselinux1-dev, libudev-dev, pkg-config Standards-Version: 3.9.1 Homepage: http://sources.redhat.com/lvm2/ XS-Debian-Vcs-Svn: svn://svn.debian.org/pkg-lvm/lvm2/trunk/ XS-Debian-Vcs-Browser: http://svn.debian.org/wsvn/pkg-lvm/lvm2/trunk/ Package: lvm2 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base, dmsetup (>> 2:1.02.47), initscripts (>= 2.88dsf-13.3), watershed (>= 2) Suggests: thin-provisioning-tools Breaks: initramfs-tools (<< 0.99) Multi-Arch: foreign Description: Linux Logical Volume Manager This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM supports enterprise level volume management of disk and disk subsystems by grouping arbitrary disks into volume groups. The total capacity of volume groups can be allocated to logical volumes, which are accessed as regular block devices. Package: lvm2-udeb XC-Package-Type: udeb Section: debian-installer Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, watershed-udeb Description: Linux Logical Volume Manager This is a udeb, or a microdeb, for the debian-installer. . This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM supports enterprise level volume management of disk and disk subsystems by grouping arbitrary disks into volume groups. The total capacity of volume groups can be allocated to logical volumes, which are accessed as regular block devices. Package: clvm Priority: extra Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, lvm2 (= ${binary:Version}), lsb-base Recommends: corosync Multi-Arch: foreign Description: Cluster LVM Daemon for lvm2 This package provides the clustering interface for lvm2, when used with Red Hat's "cman" or corosync based (eg Pacemaker) cluster infrastructure. It allows logical volumes to be created on shared storage devices (eg Fibre Channel, or iSCSI). Package: libdevmapper-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, libdevmapper1.02.1 (= ${binary:Version}), libdevmapper-event1.02.1 (= ${binary:Version}), libselinux1-dev, libudev-dev Multi-Arch: same Description: Linux Kernel Device Mapper header files The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management) Team's implementation of a minimalistic kernel-space driver that handles volume management, while keeping knowledge of the underlying device layout in user-space. This makes it useful for not only LVM, but EVMS, software raid, and other drivers that create "virtual" block devices. . This package contains the (user-space) header files for accessing the device-mapper; it allow usage of the device-mapper through a clean, consistent interface (as opposed to through kernel ioctls). Package: libdevmapper1.02.1 Section: libs Priority: optional Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends}, dmsetup (>= ${binary:Version}) Breaks: lvm2 (<< 2.02.66) Conflicts: libdevmapper1.02 Multi-Arch: same Description: Linux Kernel Device Mapper userspace library The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management) Team's implementation of a minimalistic kernel-space driver that handles volume management, while keeping knowledge of the underlying device layout in user-space. This makes it useful for not only LVM, but EVMS, software raid, and other drivers that create "virtual" block devices. . This package contains the (user-space) shared library for accessing the device-mapper; it allows usage of the device-mapper through a clean, consistent interface (as opposed to through kernel ioctls). Package: libdevmapper1.02.1-udeb XC-Package-Type: udeb Section: debian-installer Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: dmsetup-udeb Description: Linux Kernel Device Mapper userspace library This is a udeb, or a microdeb, for the debian-installer. . The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management) Team's implementation of a minimalistic kernel-space driver that handles volume management, while keeping knowledge of the underlying device layout in user-space. This makes it useful for not only LVM, but EVMS, software raid, and other drivers that create "virtual" block devices. Package: dmsetup Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, initramfs-tools, util-linux (>> 2.16), udev (>> 141-2) Conflicts: devicekit-disks (<< 009) Breaks: udev (<< 138-1) Multi-Arch: foreign Description: Linux Kernel Device Mapper userspace library The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management) Team's implementation of a minimalistic kernel-space driver that handles volume management, while keeping knowledge of the underlying device layout in user-space. This makes it useful for not only LVM, but EVMS, software raid, and other drivers that create "virtual" block devices. . This package contains a utility for modifying device mappings. Package: dmsetup-udeb XC-Package-Type: udeb Section: debian-installer Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Linux Kernel Device Mapper userspace library The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management) Team's implementation of a minimalistic kernel-space driver that handles volume management, while keeping knowledge of the underlying device layout in user-space. This makes it useful for not only LVM, but EVMS, software raid, and other drivers that create "virtual" block devices. . This package contains a utility for modifying device mappings. Package: libdevmapper-event1.02.1 Section: libs Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Breaks: dmeventd (<< 2.02.95-4ubuntu1) Multi-Arch: same Description: Linux Kernel Device Mapper event support library The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management) Team's implementation of a minimalistic kernel-space driver that handles volume management, while keeping knowledge of the underlying device layout in user-space. This makes it useful for not only LVM, but EVMS, software raid, and other drivers that create "virtual" block devices. . This package contains the userspace library to help with event monitoring for devmapper devices, in conjunction with the dmevent daemon. Package: dmeventd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} # No Multi-Arch: foreign, plugins depend on the current architecture Description: Linux Kernel Device Mapper event daemon The Linux Kernel Device Mapper is the LVM (Linux Logical Volume Management) Team's implementation of a minimalistic kernel-space driver that handles volume management, while keeping knowledge of the underlying device layout in user-space. This makes it useful for not only LVM, but EVMS, software raid, and other drivers that create "virtual" block devices. . This package contains a daemon to monitor events of devmapper devices. Package: liblvm2app2.2 Section: libs Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: LVM2 application library This package contains the lvm2app shared library. It allows easier access to the basic LVM objects and provides functions to enumerate, create or modify them. Package: liblvm2cmd2.02 Section: libs Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Multi-Arch: same Description: LVM2 command library This package contains the lvm2cmd shared library. Package: liblvm2-dev Section: libdevel Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, liblvm2app2.2 (= ${binary:Version}), liblvm2cmd2.02 (= ${binary:Version}), libdevmapper-dev Description: LVM2 libraries - development files This package contains files needed to develop applications that use the lvm2app library. debian/lvm2.init0000664000000000000000000000126712215547046010751 0ustar #!/bin/sh ### BEGIN INIT INFO # Provides: lvm2 lvm # Required-Start: mountdevsubfs # Required-Stop: # Should-Start: udev mdadm-raid cryptdisks-early multipath-tools-boot # Should-Stop: umountroot mdadm-raid # X-Start-Before: checkfs mountall # X-Stop-After: umountfs # Default-Start: S # Default-Stop: ### END INIT INFO SCRIPTNAME=/etc/init.d/lvm2 . /lib/lsb/init-functions [ -x /sbin/vgchange ] || exit 0 case "$1" in start) log_action_begin_msg "Setting up LVM Volume Groups" /sbin/lvm vgchange -aay --sysinit >/dev/null log_action_end_msg "$?" ;; stop|restart|force-reload|status) ;; *) echo "Usage: $SCRIPTNAME start" >&2 exit 3 ;; esac debian/libdevmapper-dev.install0000664000000000000000000000007112102766326014011 0ustar usr/include/libdevmapper* usr/lib/*/pkgconfig/devmapper* debian/libdevmapper1.02.1.install0000664000000000000000000000003012102766326013670 0ustar lib/*/libdevmapper.so.* debian/clvm.NEWS0000664000000000000000000000045512215547046010641 0ustar lvm2 (2.02.39-4) unstable; urgency=low The cluster locking support is now built as internal support. This means that the lvm config needs to contain the following to use this support. global { locking_type = 3 } -- Bastian Blank Fri, 21 Nov 2008 15:58:27 +0100 debian/dmsetup.docs0000664000000000000000000000004211750751164011526 0ustar debian/changelog.Debian.devmapper debian/changelog0000664000000000000000000022103512252554327011054 0ustar lvm2 (2.02.98-6ubuntu2) trusty; urgency=medium * Add enable-issue-discards.patch: Enable "issue_discards" option by default to trim SSDs when changing PVs. This option has no effect if the kernel or the drive does not support trimming, so it's safe to enable by default. [https://blueprints.launchpad.net/ubuntu/+spec/core-1311-ssd-trimming] (Closes: #717313) -- Martin Pitt Fri, 13 Dec 2013 10:51:54 +0100 lvm2 (2.02.98-6ubuntu1) saucy; urgency=low * Merge from Debian unstable, remaining changes: - debian/patches/avoid-dev-block.patch: Prefer any other device name over names in /dev/block/ since lvm.conf won't handle this. - debian/rules: - copy .po file to .pot file for Rosetta (Ubuntu specific). - debian/{dmsetup,lvm2}-udeb.install: - install initramfs and udev hooks in udebs (Debian bug 504341). - auto-start VGs as their PVs are discovered (Ubuntu specific): - add debian/tree/lvm2/lib/udev/rules.d/85-lvm2.rules: use watershed plus the sledgehammer of vgscan/vgchange to turn on VGs as they come online. - debian/tree/lvm2/usr/share/initramfs-tools/scripts/hooks/lvm2: - add 85-lvm2.rules to the list of udev rules to copy. - depend on udev. - debian/control: - add versioned Depend on watershed in lvm2 for udev rules. - add Depends on watershed-udeb in lvm2-udeb for udev rules. - add versioned Depend/Breaks on udev in dmsetup for udev rules. - add Depend on initramfs-tools in dmsetup so system is not potentially rendered unbootable by out-of-order dpkg configuration. - In libdevmapper-event1.02.1 add Breaks: dmeventd (<< 2.02.95-4ubuntu1) due to debian symbol rename - debian/rules: - do not install local-top scripts since Ubuntu mounts root using udev. - do not install init scripts for lvm2, since udev starts LVM. - continue to build clvm support. - debian/lvm2.postinst: handle missing lvm2 init script. - add mountroot failure hooks to help fix bad boots (Debian bug 468115): - debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/lvm2 - remaining changes to upstream event manager packages (Debian bug 514706): - debian/rules: - enable dmeventd during configure. - debian/dmeventd.{8,manpages}: install dmeventd files. - rename debian/clvm.defaults to debian/clvm.default so it is installed correctly. - debian/control: add dmsetup-udeb to libdevmapper1.02.1-udeb recommends. - debian/rules: make sure dmsetup and lvm2 initramfs-tools scripts are executable. When the Ubuntu-specific ones are added with a patch, they may lose their executable bit. - Add and install clvmd resource agent - Add dependency on libudev-dev to libdevmapper-dev so that the .pc file works. - debian/{clvmd.ra,clvm.init}: - create /run/lvm if it doesn't exist. - debian/clvm.init: - exit 3 if not running on status action. - Call dh_installman so that our dmeventd manpage actually gets installed - Install the missing fsadm manpage. - Complete libdevmapper-dev multiarch: - move .so symlinks and pkgconfig files to multiarched locations. - mark libdevmapper-dev M-A: same * New changes: - keep ocf resource directory - build with only corosync clvmd support * Dropped changes: - debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules: watch dm devices for changes with inotify. This udev rule is gone. -- Dmitrijs Ledkovs Mon, 16 Sep 2013 10:39:47 +0100 lvm2 (2.02.98-6) unstable; urgency=low * Update init script: - Use auto-activation. - Drop manual loading of dm-mod. * Fix udev rules: - Re-add another oversight. -- Bastian Blank Tue, 27 Aug 2013 13:13:17 +0200 lvm2 (2.02.98-5) unstable; urgency=low * Fix udev rules. - Properly exclude special devices, this part got lost. (closes: #718582) - Always call udev sync. -- Bastian Blank Wed, 07 Aug 2013 15:10:23 +0200 lvm2 (2.02.98-4) unstable; urgency=low * Drop still broken udev stuff. (closes: #712049) * Make thin support usable: - Suggest thin-privisioning-tools. - Set correct location for thin_check binary. -- Bastian Blank Sun, 14 Jul 2013 16:37:56 +0200 lvm2 (2.02.98-3) unstable; urgency=low * Revert udev rules. (closes: #711740) -- Bastian Blank Sun, 09 Jun 2013 22:08:02 +0200 lvm2 (2.02.98-2) unstable; urgency=low * Use udev monitor for synchronization. * Fix wrong disable in udev rules. -- Bastian Blank Sat, 08 Jun 2013 12:50:57 +0200 lvm2 (2.02.98-1ubuntu5) saucy; urgency=low * Reenabled clvm -- Andres Rodriguez Wed, 28 Aug 2013 10:46:43 +0100 lvm2 (2.02.98-1ubuntu4) saucy; urgency=low * hooks/lvm2: add dm_raid to the dm personality modules to be included in the initramfs as this is a valid personality for the root filesystem and such volumes lead to extended boot times and boot failures. (LP: #1206235) -- Andy Whitcroft Mon, 29 Jul 2013 20:37:28 +0100 lvm2 (2.02.98-1ubuntu3) saucy; urgency=low * Disable clvm for the time being, given that redhat-cluster will soon be removed from the archives (provides libdml-dev, libcman-dev), in favor of the new cluster stack (corosync). Once corosync > 2.X is released and a new source package 'dlm' (will provide libdlm-dev) hits the archive, clvm can be reenabled. - debian/control: Drop Build-Depends on libcman-dev, libcorosync-dev, libdlm-dev, openais-dev; Comment out clvm binary package. - debian/rules: Do not build --with-clvmd; comment clvm related rules. -- Andres Rodriguez Fri, 26 Jul 2013 12:45:06 -0400 lvm2 (2.02.98-1ubuntu2) saucy; urgency=low * Update config.guess and config.sub. -- Dmitrijs Ledkovs Thu, 11 Jul 2013 20:35:43 +0100 lvm2 (2.02.98-1ubuntu1) saucy; urgency=low * Merge from Debian unstable, remaining changes: - debian/patches/avoid-dev-block.patch: Prefer any other device name over names in /dev/block/ since lvm.conf won't handle this. - debian/rules: - copy .po file to .pot file for Rosetta (Ubuntu specific). - debian/{dmsetup,lvm2}-udeb.install: - install initramfs and udev hooks in udebs (Debian bug 504341). - auto-start VGs as their PVs are discovered (Ubuntu specific): - add debian/tree/lvm2/lib/udev/rules.d/85-lvm2.rules: use watershed plus the sledgehammer of vgscan/vgchange to turn on VGs as they come online. - debian/tree/lvm2/usr/share/initramfs-tools/scripts/hooks/lvm2: - add 85-lvm2.rules to the list of udev rules to copy. - depend on udev. - debian/control: - add versioned Depend on watershed in lvm2 for udev rules. - add Depends on watershed-udeb in lvm2-udeb for udev rules. - add versioned Depend/Breaks on udev in dmsetup for udev rules. - add Depend on initramfs-tools in dmsetup so system is not potentially rendered unbootable by out-of-order dpkg configuration. - In libdevmapper-event1.02.1 add Breaks: dmeventd (<< 2.02.95-4ubuntu1) due to debian symbol rename - debian/rules: - do not install local-top scripts since Ubuntu mounts root using udev. - do not install init scripts for lvm2, since udev starts LVM. - continue to build clvm support. - debian/lvm2.postinst: handle missing lvm2 init script. - debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules: watch dm devices for changes with inotify - add mountroot failure hooks to help fix bad boots (Debian bug 468115): - debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/lvm2 - remaining changes to upstream event manager packages (Debian bug 514706): - debian/rules: - enable dmeventd during configure. - debian/dmeventd.{8,manpages}: install dmeventd files. - rename debian/clvm.defaults to debian/clvm.default so it is installed correctly. - debian/control: add dmsetup-udeb to libdevmapper1.02.1-udeb recommends. - debian/rules: make sure dmsetup and lvm2 initramfs-tools scripts are executable. When the Ubuntu-specific ones are added with a patch, they may lose their executable bit. - Add and install clvmd resource agent - Add dependency on libudev-dev to libdevmapper-dev so that the .pc file works. - debian/{clvmd.ra,clvm.init}: - create /run/lvm if it doesn't exist. - debian/clvm.init: - exit 3 if not running on status action. - Call dh_installman so that our dmeventd manpage actually gets installed - Install the missing fsadm manpage. - Complete libdevmapper-dev multiarch: - move .so symlinks and pkgconfig files to multiarched locations. - mark libdevmapper-dev M-A: same * Dropped changes, applied upstream: - Update Micron PCIe SSD and other device-types to latest available. - Cherry pick from upstream, remove unsupported udev_get_dev_path() call. - Move thin check to global section. -- Dmitrijs Ledkovs Thu, 30 May 2013 11:02:10 +0100 lvm2 (2.02.98-1) unstable; urgency=low * New upstream version. * Re-enable thin support. -- Bastian Blank Sun, 03 Mar 2013 12:33:47 +0100 lvm2 (2.02.95-7) testing; urgency=low * Re-enable cluster support. (closes: #697676) * Disable thin support. We lack the thin_check binary and it does not work anyway. (closes: #702163) -- Bastian Blank Sun, 24 Mar 2013 09:03:10 +0100 lvm2 (2.02.95-6ubuntu4) raring; urgency=low * Actually just update all device-types to latest available. (LP: #1122445) -- Dmitrijs Ledkovs Thu, 14 Mar 2013 15:03:49 +0000 lvm2 (2.02.95-6ubuntu3) raring; urgency=low * Add Micron PCIe SSD devices filter (LP: #1122445) -- Dmitrijs Ledkovs Thu, 14 Mar 2013 12:05:00 +0000 lvm2 (2.02.95-6ubuntu2) raring; urgency=low * Add upstream-drop-udev_get_dev_path.patch: Remove udev_get_dev_path() libudev call, as this is unsupported in libudev1. Backported from upstream git. -- Martin Pitt Tue, 12 Mar 2013 07:54:19 +0100 lvm2 (2.02.95-6ubuntu1) raring; urgency=low [ Neil Wilson ] * Use upstream dmeventd.8 manpage (LP: #1076304) * debian/patches/1075994_move_thin_check_executable_to_proper_section. patch: - put thin_check_executable in the 'global' section - look for thin_check in /usr/sbin (LP: #1075994) [ Dmitrijs Ledkovs ] * Revert drop of clvm support. Still to be supported in ubuntu. * All other changes as in -5ubuntu1. -- Dmitrijs Ledkovs Sat, 02 Mar 2013 22:43:10 +0000 lvm2 (2.02.95-6) unstable; urgency=low * Drop cluster (clvm) support. It never properly worked and is more dead than alive. -- Bastian Blank Wed, 02 Jan 2013 11:11:41 +0100 lvm2 (2.02.95-5ubuntu1) raring; urgency=low * Merge from Debian unstable, remaining changes (LP: #1082325): - debian/patches/avoid-dev-block.patch: Prefer any other device name over names in /dev/block/ since lvm.conf won't handle this. - debian/rules: - copy .po file to .pot file for Rosetta (Ubuntu specific). - debian/{dmsetup,lvm2}-udeb.install: - install initramfs and udev hooks in udebs (Debian bug 504341). - auto-start VGs as their PVs are discovered (Ubuntu specific): - add debian/tree/lvm2/lib/udev/rules.d/85-lvm2.rules: use watershed plus the sledgehammer of vgscan/vgchange to turn on VGs as they come online. - debian/tree/lvm2/usr/share/initramfs-tools/scripts/hooks/lvm2: - add 85-lvm2.rules to the list of udev rules to copy. - depend on udev. - debian/control: - add versioned Depend on watershed in lvm2 for udev rules. - add Depends on watershed-udeb in lvm2-udeb for udev rules. - add versioned Depend/Breaks on udev in dmsetup for udev rules. - add Depend on initramfs-tools in dmsetup so system is not potentially rendered unbootable by out-of-order dpkg configuration. - In libdevmapper-event1.02.1 add Breaks: dmeventd (<< 2.02.95-4ubuntu1) due to debian symbol rename - debian/rules: - do not install local-top scripts since Ubuntu mounts root using udev. - do not install init scripts for lvm2, since udev starts LVM. - debian/lvm2.postinst: handle missing lvm2 init script. - debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules: watch dm devices for changes with inotify - add mountroot failure hooks to help fix bad boots (Debian bug 468115): - debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/lvm2 - remaining changes to upstream event manager packages (Debian bug 514706): - debian/rules: - enable dmeventd during configure. - debian/dmeventd.{8,manpages}: install dmeventd files. - rename debian/clvm.defaults to debian/clvm.default so it is installed correctly. - debian/control: add dmsetup-udeb to libdevmapper1.02.1-udeb recommends. - debian/rules: make sure dmsetup and lvm2 initramfs-tools scripts are executable. When the Ubuntu-specific ones are added with a patch, they may lose their executable bit. - Add and install clvmd resource agent - Add dependency on libudev-dev to libdevmapper-dev so that the .pc file works. - debian/{clvmd.ra,clvm.init}: - create /run/lvm if it doesn't exist. - debian/clvm.init: - exit 3 if not running on status action. - Call dh_installman so that our dmeventd manpage actually gets installed - Install the missing fsadm manpage. - Complete libdevmapper-dev multiarch: - move .so symlinks and pkgconfig files to multiarched locations. - mark libdevmapper-dev M-A: same * Dropped changes debian/lvm2.{preinst,postinst,postrm}, not needed in Raring: - Implement removal of obsolete /etc/init.d/lvm2 conffile, which should not have been re-introduced in Quantal. -- Dmitrijs Ledkovs Mon, 26 Nov 2012 10:35:00 +0000 lvm2 (2.02.95-5) unstable; urgency=low * Don't discard pv areas on pvmove commands. (closes: #691271) * Properly ignore missing dmeventd. -- Bastian Blank Mon, 19 Nov 2012 12:11:15 +0100 lvm2 (2.02.95-4ubuntu1) quantal; urgency=low * Merge from Debian unstable, remaining changes: - debian/patches/avoid-dev-block.patch: Prefer any other device name over names in /dev/block/ since lvm.conf won't handle this. - debian/rules: - copy .po file to .pot file for Rosetta (Ubuntu specific). - debian/{dmsetup,lvm2}-udeb.install: - install initramfs and udev hooks in udebs (Debian bug 504341). - auto-start VGs as their PVs are discovered (Ubuntu specific): - add debian/tree/lvm2/lib/udev/rules.d/85-lvm2.rules: use watershed plus the sledgehammer of vgscan/vgchange to turn on VGs as they come online. - debian/tree/lvm2/usr/share/initramfs-tools/scripts/hooks/lvm2: - add 85-lvm2.rules to the list of udev rules to copy. - depend on udev. - debian/control: - add versioned Depend on watershed in lvm2 for udev rules. - add Depends on watershed-udeb in lvm2-udeb for udev rules. - add versioned Depend/Breaks on udev in dmsetup for udev rules. - add Depend on initramfs-tools in dmsetup so system is not potentially rendered unbootable by out-of-order dpkg configuration. - debian/rules: - do not install local-top scripts since Ubuntu mounts root using udev. - do not install init scripts for lvm2, since udev starts LVM. - debian/lvm2.postinst: handle missing lvm2 init script. - debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules: watch dm devices for changes with inotify - add mountroot failure hooks to help fix bad boots (Debian bug 468115): - debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/lvm2 - remaining changes to upstream event manager packages (Debian bug 514706): - debian/rules: - enable dmeventd during configure. - debian/dmeventd.{8,manpages}: install dmeventd files. - rename debian/clvm.defaults to debian/clvm.default so it is installed correctly. - debian/control: add dmsetup-udeb to libdevmapper1.02.1-udeb recommends. - debian/rules: make sure dmsetup and lvm2 initramfs-tools scripts are executable. When the Ubuntu-specific ones are added with a patch, they may lose their executable bit. - Add and install clvmd resource agent - Add dependency on libudev-dev to libdevmapper-dev so that the .pc file works. - debian/{clvmd.ra,clvm.init}: - create /run/lvm if it doesn't exist. - debian/clvm.init: - exit 3 if not running on status action. - Call dh_installman so that our dmeventd manpage actually gets installed - Install the missing fsadm manpage. * libdevmapper-dev: - move .so symlinks and pkgconfig files to multiarched locations. - mark libdevmapper-dev M-A: same * libdevmapper-event1.02.1: - Add Breaks: dmeventd (<< 2.02.95-4ubuntu1) due to debian symbol rename * debian/lvm2.{preinst,postinst,postrm}: - Implement removal of obsolete /etc/init.d/lvm2 conffile, which should not have been re-introduced in Quantal. * Dropped Changes, included in Debian: - Mostly included packages for upstream event manager (Debian bug 514706). - debian/patches/rules-subdir.patch: removed as reordering will cause build failure with dmeventd. - debian/patches/libdm-event-static.patch: removed as other static libs aren't being built anymore either. - Update symbols for libdevmapper-event. - Update libdevmapper-event, dmeventd descriptions to match Debian boilerplate. * Disappeared Changes: - Don't install documentation in udebs. No diff found, but no docs are installed into udebs either. * Resurected Changes: - corrected dropping the wrong init script. Now clvm.init is shipped and lvm2.init is dropped in favor of udev rules as per original intention (LP: #1037033). -- Dmitrijs Ledkovs Tue, 14 Aug 2012 14:35:57 +0100 lvm2 (2.02.95-4) unstable; urgency=low * Force building with -j1. * Add dmeventd and libdevmapper-event packages. (closes: #514706) - Disable monitoring by default. - Force dmeventd to look into correct directory for shared libs. * Also link shared libs with correct flags. * Enable support for thin target. (closes: #673000) -- Bastian Blank Sun, 27 May 2012 19:05:21 +0200 lvm2 (2.02.95-3) unstable; urgency=low * Fix build-dependency. * Lower priority of libdevmapper1.02.1 to match overrides. * Silence init script. -- Bastian Blank Fri, 04 May 2012 13:36:04 +0200 lvm2 (2.02.95-2) unstable; urgency=low * Support multi-arch. - Convert library packages to multi-arch. - Mark packages with binary as foreign. * Use dpkg buildflags support. (closes: #657523) * Define build-arch and build-indep make targets. -- Bastian Blank Fri, 04 May 2012 12:46:59 +0200 lvm2 (2.02.95-1) unstable; urgency=low * New upstream version. (closes: #670072) * Fix dependencies in clvm init script. (closes: #655970) * Demote cluster manager dependency to recommends. -- Bastian Blank Tue, 01 May 2012 20:27:50 +0200 lvm2 (2.02.88-2ubuntu2) quantal-proposed; urgency=low [ Ante Karamatic ] * debian/{clvmd.ra,clvm.init}: - create /var/run/lvm if it doesn't exist (LP: #959218) [ Andres Rodriguez ] * debian/clvm.init: exit 3 if not running on status action. (LP: #988881) -- Andres Rodriguez Tue, 05 Jun 2012 16:30:18 -0400 lvm2 (2.02.88-2ubuntu1) quantal; urgency=low * Merge from Debian unstable (LP: #726677), remaining changes: - debian/patches/avoid-dev-block.patch: Prefer any other device name over names in /dev/block/ since lvm.conf won't handle this. - debian/rules: - copy .po file to .pot file for Rosetta (Ubuntu specific). - debian/{dmsetup,lvm2}-udeb.install: - install initramfs and udev hooks in udebs (Debian bug 504341). - auto-start VGs as their PVs are discovered (Ubuntu specific): - add debian/tree/lvm2/lib/udev/rules.d/85-lvm2.rules: use watershed plus the sledgehammer of vgscan/vgchange to turn on VGs as they come online. - debian/tree/lvm2/usr/share/initramfs-tools/scripts/hooks/lvm2: - add 85-lvm2.rules to the list of udev rules to copy. - depend on udev. - debian/control: - add versioned Depend on watershed in lvm2 for udev rules. - add versioned Depend/Breaks on udev in dmsetup for udev rules. - add Depend on initramfs-tools in dmsetup so system is not potentially rendered unbootable by out-of-order dpkg configuration. LP: #358654. - debian/rules: - do not install local-top scripts since Ubuntu mounts root using udev. - do not install init scripts for lvm2, since udev starts LVM. - debian/lvm2.postinst: handle missing lvm2 init script. - debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules: watch dm devices for changes with inotify - add mountroot failure hooks to help fix bad boots (Debian bug 468115): - debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/lvm2 - add packages for upstream event manager (Debian bug 514706): - debian/control: define libdevmapper-event1.02.1 and dmeventd packages. - debian/rules: - enable dmeventd during configure. - add build targets. - fix shlibs invocation with a cleared DH_OPTIONS to get udeb shlibs. - debian/dmeventd.{install,8,manpages}: install dmeventd files. - debian/libdevmapper-event*.{install,symbols}: install dmeventd files. - debian/libdevmapper-dev.install: install libdevmapper-event files. - debian/patches/monitoring-default-off.patch: by default, do not expect to talk to dmeventd. Monitoring can be done via "--monitor y". - rename debian/clvm.defaults to debian/clvm.default so it is intalled correctly. - debian/control: add dmsetup-udeb to libdevmapper1.02.1-udeb recommends. - lidevmapper-dev: move .so symlinks to /usr/lib where they belong - debian/patches/rules-subdir.patch: removed as reordering will cause build failure with dmeventd. - debian/patches/libdm-event-static.patch: removed as other static libs aren't being built anymore either. - debian/rules: make sure dmsetup and lvm2 initramfs-tools scripts are executable. When the Ubuntu-specific ones are added with a patch, they may lose their executable bit. - Add and install clvmd resource agent - Add dependency on libudev-dev to libdevmapper-dev so that the .pc file works. - Make lvm2-udeb depend on watershed-udeb, since it has udev rules that use watershed. * Dropped changes, included in Debian: - Build clvm with support for corosync, openais and cman - debian/control: change to libreadline-dev for build. * Dropped changes, included upstream: - debian/patches/open-readonly.patch: do not open every device for write, otherwise udev thinks they've all changed (see inotify above). * Dropped changes, superseded upstream: - debian/tree/dmsetup/lib/udev/rules.d/55-dm.rules: properly respond to "add" events during boot. Upstream now distinguishes between coldplug add events initial ones, so this is not supposed to be a problem now. * Update symbols for libdevmapper-event. * Update libdevmapper-event, dmeventd descriptions to match Debian boilerplate. * Don't install documentation in udebs. * Call dh_installman so that our dmeventd manpage actually gets installed * Install the missing fsadm manpage. -- Steve Langasek Wed, 02 May 2012 07:48:42 -0700 lvm2 (2.02.88-2) unstable; urgency=low * Enable corosync and openais support. (closes: #563320) -- Bastian Blank Sat, 26 Nov 2011 18:51:00 +0100 lvm2 (2.02.88-1) unstable; urgency=low * New upstream version. * Remove lvm-common conflicts and replaces. * Remove grub-common breakage. * Remove own quilt usage. * Move cache file to /run/lvm. (closes: #562234) - Remove old cache dir. * Move lock files to /run/lock/lvm. (closes: #263148) * Support status action in lvm2 init script. (closes: #643822) * Remove Squeeze upgrade checks. -- Bastian Blank Thu, 20 Oct 2011 21:37:06 +0200 lvm2 (2.02.86-1) unstable; urgency=low * New upstream version. * Remove leading article from short description. * Update udev rules. -- Bastian Blank Sat, 27 Aug 2011 18:45:21 +0200 lvm2 (2.02.84-3.1) unstable; urgency=low * Non-maintainer upload. * Replace libreadline5-dev build dependency with (conservatively) libreadline-gplv2-dev, fixes an FTBFS. (Closes: #553807) -- Thorsten Glaser Mon, 25 Jul 2011 17:39:19 +0000 lvm2 (2.02.84-3) unstable; urgency=low * Remove udev dependency from init script. (closes: #543163) * Don't longer create device nodes in init script. * Don't longer try to stop devices on shutdown. -- Bastian Blank Mon, 28 Mar 2011 14:42:35 +0200 lvm2 (2.02.84-2) unstable; urgency=low * Fix development library symlinks. (closes: #614838) * Update Standards-Version to 3.9.1, no changes needed. -- Bastian Blank Fri, 04 Mar 2011 11:40:22 +0100 lvm2 (2.02.84-1) unstable; urgency=medium * New upstream version. * Adopt upstream changes in udev rules. (closes: #603710) -- Bastian Blank Mon, 21 Feb 2011 22:53:35 +0100 lvm2 (2.02.66-5) unstable; urgency=low * Remove old libdevmapper1.02 init script on upgrade. (closes: #549316) * Conflict against libdevmapper1.02. -- Bastian Blank Sun, 23 Jan 2011 18:30:01 +0100 lvm2 (2.02.66-4ubuntu7) precise; urgency=low * Revert the last change. -- Matthias Klose Sun, 04 Dec 2011 17:30:41 +0100 lvm2 (2.02.66-4ubuntu6) precise; urgency=low * Don't build clvmd on armhf. -- Matthias Klose Sun, 04 Dec 2011 16:01:51 +0100 lvm2 (2.02.66-4ubuntu5) precise; urgency=low * Build-depend on openais-dev rather than libopenais-dev. -- Colin Watson Tue, 22 Nov 2011 00:42:29 +0000 lvm2 (2.02.66-4ubuntu4) precise; urgency=low * Make lvm2-udeb depend on watershed-udeb, since it has udev rules that use watershed. -- Colin Watson Mon, 21 Nov 2011 23:47:38 +0000 lvm2 (2.02.66-4ubuntu3) oneiric; urgency=low * Add dependency on libudev-dev to libdevmapper-dev so that the .pc file works. -- Steve Langasek Tue, 16 Aug 2011 18:30:40 -0700 lvm2 (2.02.66-4ubuntu2) natty; urgency=low * Add support for corosync based clusters. (LP: #525287) - Build clvm with support for corosync, openais and cman - Add and install clvmd resource agent, written by Xinwei Hu, slightly modified by Ante Karamatic to work on Ubuntu -- Andres Rodriguez Fri, 14 Jan 2011 15:39:03 -0600 lvm2 (2.02.66-4ubuntu1) natty; urgency=low * Merge from debian unstable. Remaining changes: - debian/patches/avoid-dev-block.patch: Prefer any other device name over names in /dev/block/ since lvm.conf won't handle this (Debian bug 569290). - debian/rules: - copy .po file to .pot file for Rosetta (Ubuntu specific). - debian/{dmsetup,lvm2}-udeb.install: - install initramfs and udev hooks in udebs (Debian bug 504341). - auto-start VGs as their PVs are discovered (Ubuntu specific): - add debian/tree/lvm2/lib/udev/rules.d/85-lvm2.rules: use watershed plus the sledgehammer of vgscan/vgchange to turn on VGs as they come online. - debian/tree/lvm2/usr/share/initramfs-tools/scripts/hooks/lvm2: - add 85-lvm2.rules to the list of udev rules to copy. - depend on udev. - debian/control: - add versioned Depend on watershed in lvm2 for udev rules. - add versioned Depend/Breaks on udev in dmsetup for udev rules. - add Depend on initramfs-tools in dmsetup so system is not potentially rendered unbootable by out-of-order dpkg configuration. - debian/rules: - do not install local-top scripts since Ubuntu mounts root using udev. - do not install init scripts for lvm2, since udev starts LVM. - debian/lvm2.postinst: handle missing lvm2 init script. - debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules: watch dm devices for changes with inotify. - debian/patches/open-readonly.patch: do not open every device for write, otherwise udev thinks they've all changed (see inotify above). - add mountroot failure hooks to help fix bad boots (Debian bug 468115): - debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/lvm2 - add packages for upstream event manager (Debian bug 514706): - debian/control: define libdevmapper-event1.02.1 and dmeventd packages. - debian/rules: - enable dmeventd during configure. - add build targets. - fix shlibs invocation with a cleared DH_OPTIONS to get udeb shlibs. - debian/dmeventd.{install,8,manpages}: install dmeventd files. - debian/libdevmapper-event*.{install,symbols}: install dmeventd files. - debian/libdevmapper-dev.install: install libdevmapper-event files. - debian/patches/monitoring-default-off.patch: by default, do not expect to talk to dmeventd. Monitoring can be done via "--monitor y". - rename debian/clvm.defaults to debian/clvm.default so it is intalled correctly (Debian bug 569292). - debian/control: change to libreadline-dev for build. - debian/tree/dmsetup/lib/udev/rules.d/55-dm.rules: properly respond to "add" events during boot. - debian/control: add dmsetup-udeb to libdevmapper1.02.1-udeb recommends. - lidevmapper-dev: move .so symlinks to /usr/lib where they belong * Dropped changes: - debian/tree/lvm2/lib/udev/rules.d/56-lvm.rules: include *_mlog in devices to be ignored for filesystem symlinks (see reason for dropping in Debian bug 569745). - debian/{lvm2,dmsetup}.preinst: remove obsolete udev rules from Hardy. - debian/lvm2.preinst: fix Hardy conf-file removal to check against the correct binary package name. * debian/patches/CVE-2010-2526.patch: removed, now included in upstream-2.02.72.patch. * debian/patches/rules-subdir.patch: removed as reordering will cause build failure with dmeventd. * debian/patches/libdm-event-static.patch: removed as other static libs aren't being built anymore either. * debian/rules: make sure dmsetup and lvm2 initramfs-tools scripts are executable. When the Ubuntu-specific ones are added with a patch, they may lose their executable bit. -- Marc Deslauriers Tue, 07 Dec 2010 08:08:45 -0500 lvm2 (2.02.66-4) unstable; urgency=low * Make libdevmapper break old lvm2, it missuses the udev sync interface. (closes: #599596) * Make lvm2 break old grub-common. (closes: #588026) * Use correct binary name in clvm init script. (closes: #600089) -- Bastian Blank Sat, 30 Oct 2010 18:04:20 +0200 lvm2 (2.02.66-3) unstable; urgency=high * Import upstream version 2.02.72: - CVE-2010-2526: Fix insecure communication between lvm2 and clvmd. (Closes: #591204) - Only use single node clvm if explicitly requested. -- Bastian Blank Thu, 19 Aug 2010 14:44:02 +0200 lvm2 (2.02.66-2) unstable; urgency=medium * Make libdevmapper1.02.1 depend on dmsetup. libdevmapper needs new enough udev rules, which needs dmsetup for now. (closes: #585786) - Set urgency to medium, as this can break the boot. -- Bastian Blank Fri, 18 Jun 2010 11:39:39 +0200 lvm2 (2.02.66-1) unstable; urgency=low * New upstream version. * Define and use a union for semaphore access as mandated by the standard. (closes: #583677) * Don't longer overwrite names of dm devices. -- Bastian Blank Fri, 04 Jun 2010 11:47:51 +0200 lvm2 (2.02.64-1) unstable; urgency=low * New upstream version. * Don't longer build static libraries. * Fix readline support. (closes: #575640) * Built-in cluster locking. * Build liblvm2app and liblvm2cmd. (closes: #564810) * Adopt some upstream udev rule changes. * Enable udev sync, remove explicit udev dependency, bump dmsetup dependency to get it working. (closes: #543163) -- Bastian Blank Wed, 19 May 2010 13:33:09 +0000 lvm2 (2.02.62-1) unstable; urgency=low * New upstream version. * Use 3.0 (quilt) source format. - Fix permission of hook script. (closes: 569286) * Remove DM_HIDE from the documentation. (closes: #573154) -- Bastian Blank Sat, 20 Mar 2010 18:09:20 +0100 lvm2 (2.02.54-1ubuntu6) maverick; urgency=low * SECURITY UPDATE: unprivileged logical volume manipulation with clvmd - debian/patches/CVE-2010-2526.patch: revert to using a pathname-based socket in order to enforce correct permissions. - CVE-2010-2526 -- Marc Deslauriers Thu, 23 Sep 2010 14:09:51 -0400 lvm2 (2.02.54-1ubuntu5) maverick; urgency=low * Backport from Debian: - Don't overwrite names of dm devices; use symlinks instead (LP: #621951). -- Colin Watson Wed, 08 Sep 2010 22:50:26 +0100 lvm2 (2.02.54-1ubuntu4) lucid; urgency=low * Some idiot thought it'd be a good idea if device mapper didn't respond to "add" events, like those during boot. Take their change out back and shoot it in the head. LP: #561390. -- Scott James Remnant Sun, 25 Apr 2010 21:36:25 -0700 lvm2 (2.02.54-1ubuntu3) lucid; urgency=low * lidevmapper-dev: move .so symlinks to /usr/lib where they belong -- Steve Langasek Thu, 18 Feb 2010 04:38:10 -0800 lvm2 (2.02.54-1ubuntu2) lucid; urgency=low * debian/lvm2.preinst: fix Hardy conf-file removal to check against the correct binary package name. -- Kees Cook Tue, 16 Feb 2010 16:08:43 -0800 lvm2 (2.02.54-1ubuntu1) lucid; urgency=low * Merge from debian testing. Remaining changes: - debian/control: - add libtool for autoconf regeneration. - debian/patches/avoid-dev-block.patch: Prefer any other device name over names in /dev/block/ since lvm.conf won't handle this (Debian bug 569290). - debian/rules: - copy .po file to .pot file for Rosetta (Ubuntu specific). - install initramfs and udev hooks in udebs (Debian bug 504341). - auto-start VGs as their PVs are discovered (Ubuntu specific): - add debian/tree/lvm2/lib/udev/rules.d/85-lvm2.rules: use watershed plus the sledgehammer of vgscan/vgchange to turn on VGs as they come online. - debian/tree/lvm2/usr/share/initramfs-tools/scripts/hooks/lvm2: - add 85-lvm2.rules to the list of udev rules to copy. - depend on udev. - debian/control: - add versioned Depend on watershed in lvm2 for udev rules. - add versioned Depend/Breaks on udev in dmsetup for udev rules. - add Depend on initramfs-tools in dmsetup so system is not potentially rendered unbootable by out-of-order dpkg configuration. - debian/rules: - do not install local-top scripts since Ubuntu mounts root using udev. - do not install init scripts for lvm2, since udev starts LVM. - debian/lvm2.postinst: handle missing lvm2 init script. - debian/tree/dmsetup/lib/udev/rules.d/60-persistent-storage-dm.rules: watch dm devices for changes with inotify. - debian/patches/open-readonly.patch: do not open every device for write, otherwise udev thinks they've all changed (see inotify above). - add mountroot failure hooks to help fix bad boots (Debian bug 468115): - debian/tree/lvm2/usr/share/initramfs-tools/scripts/init-premount/lvm2 - add packages for upstream event manager (Debian bug 514706): - debian/control: define libdevmapper-event1.02.1 and dmeventd packages. - debian/rules: - enable dmeventd during configure. - add build targets. - fix shlibs invocation with a cleared DH_OPTIONS to get udeb shlibs. - debian/patches/rules-subdir.patch: update to reorder build targets. - debian/patches/libdm-event-static.patch: force static library build. - debian/dmeventd.{install,8,manpages}: install dmeventd files. - debian/libdevmapper-event*.{install,symbols}: install dmeventd files. - debian/libdevmapper-dev.install: install libdevmapper-event files. - debian/patches/monitoring-default-off.patch: by default, do not expect to talk to dmeventd. Monitoring can be done via "--monitor y". * debian/rules: make dmsetup initramfs-tools scripts executable (Debian bug 569286). * rename debian/clvm.defaults to debian/clvm.default so it is intalled correctly (Debian bug 569292). * debian/control: bump up to libreadline6-dev for build. * debian/{lvm2,dmsetup}.preinst: remove obsolete udev rules from Hardy. * debian/tree/lvm2/lib/udev/rules.d/56-lvm.rules: include *_mlog in devices to be ignored for filesystem symlinks (Debian bug 569745). -- Kees Cook Tue, 16 Feb 2010 10:40:31 -0800 lvm2 (2.02.54-1) unstable; urgency=low * New upstream version. * Remove notify rules, unused for now. * Add better documentation about the udev rules. * Update list of to be ignored hidden lvm subvolumes. * Make libdevmapper-dev depend against libselinux1-dev. * Update complete udev ruleset. * Remove conflict against devicekit-disks. * Use bash for new script. -- Bastian Blank Fri, 06 Nov 2009 18:20:39 +0100 lvm2 (2.02.53-2) unstable; urgency=medium * Fix variable assignment in udev rules. (closes: #550100, RC bugfix) * Install udev rules into initramfs. * Add initramfs-tools hook to dmsetup. * Trigger initramfs update. -- Bastian Blank Thu, 08 Oct 2009 18:17:43 +0200 lvm2 (2.02.53-1) unstable; urgency=low * New upstream version. * Make dmsetup conflicts against devicekit-disks, it duplicates the udev rules. * Add possibility to hide creation of extra symlinks via udev. * Ignore temporary cryptsetup devices. -- Bastian Blank Wed, 30 Sep 2009 05:27:35 +0200 lvm2 (2.02.52-1) unstable; urgency=low * New upstram version. * Fix clvm init script. (closes: #542169) * Remove dmsetup export support, unused. -- Bastian Blank Fri, 18 Sep 2009 17:44:29 +0000 lvm2 (2.02.51-4) unstable; urgency=low * Fix version in conffile removal. (closes: #542942) * Add example udev rules file for permission setup. (closes: #450793) -- Bastian Blank Sun, 06 Sep 2009 13:40:08 +0200 lvm2 (2.02.51-3) unstable; urgency=low * Remove obsolete udev rule files. (closes: #542942) * Add Homepage and Vcs-{Browser,Svn} fields. (closes: #486552, #516486) * Apply upstream patch for pvcreate breakage. (closes: #542702) -- Bastian Blank Sat, 05 Sep 2009 14:02:48 +0200 lvm2 (2.02.51-2) unstable; urgency=low * Make mapper/* the real device, dm-* a symlink. (closes: #542422) -- Bastian Blank Thu, 20 Aug 2009 21:23:14 +0200 lvm2 (2.02.51-1) unstable; urgency=low * New upstream version. * Add multipath as prereq of initramfs-tools script. (closes: #511903) * Don't explicitly load special dm modules in initramfs-tools script. * Fix dependencies of init script for mdadm and multipath-tools. (closes: #514665, #532661) * Add new libdevmapper symbols. * Forcible remove old lvm init script. * Update udev rules, but not enable udev sync yet. - Use blkid. (closes: #541885) - Make lvm2 depend on dmsetup. - Make dmsetup depend on new util-linux for blkid. - Make dmsetup depend on udev. * Install fsadm. * Use dmsetup name split support in initramfs-tools script. * Only enable needed LVs in initramfs-tools script. -- Bastian Blank Mon, 17 Aug 2009 17:29:04 +0000 lvm2 (2.02.44-3) unstable; urgency=low * Merge remaining settings for devmapper. - Fix device group and mode. (closes: #518361) - Disable selinux support in udeb. (closes: #518527) -- Bastian Blank Tue, 10 Mar 2009 11:32:36 +0100 lvm2 (2.02.44-2) unstable; urgency=low * Fix implicit pointer conversion. (closes: #516867) * Drop unused ncurses dependency. -- Bastian Blank Sat, 28 Feb 2009 11:51:01 +0100 lvm2 (2.02.44-1) unstable; urgency=low * New upstream version. - Merge devmapper sources. * Add devmapper binary packages. * Use debhelper compat level 7. * Add new libdevmapper symbols. * Update copyright file. -- Bastian Blank Mon, 23 Feb 2009 20:51:17 +0100 lvm2 (2.02.39-6) unstable; urgency=low * Readd a vgchange binary into the initramfs. At least cryptsetup depends on this. -- Bastian Blank Sat, 22 Nov 2008 16:16:57 +0100 lvm2 (2.02.39-5) unstable; urgency=low * Install lvm.conf into initramfs. (closes: #439761) * Also ignore locking in initramfs. * Make piuparts-clean. (closes: 455115) - Cleanup old files on upgrade. /lib/lvm-default, /etc/lvm/.cache. - Cleanup dirs on remove. /etc/lvm/cache, /var/lock/lvm. * Recommend dmsetup. -- Bastian Blank Fri, 21 Nov 2008 22:15:18 +0100 lvm2 (2.02.39-4) unstable; urgency=low * Revert locking change, it breaks too much. (closes: #506354) * Disable cluster support in udeb. * Install the binary as lvm in the initramfs. (closes: #503627) * Build cluster locking internal. * Adjust clvm documentation for the locking change. -- Bastian Blank Fri, 21 Nov 2008 16:23:22 +0100 lvm2 (2.02.39-3) unstable; urgency=low * Depend against lsb-base. * Make clvm depend against cman. * Don't ignore locking failures in lvm2 init script. * Only activate vgs local. * Add clvm initscript. (closes: #336258) * Try to activate anything in the lvm2 postinst. (closes: #506105) -- Bastian Blank Wed, 19 Nov 2008 11:59:06 +0100 lvm2 (2.02.39-2) unstable; urgency=low * Disable readline support in udeb. (closes: #491203) -- Bastian Blank Fri, 18 Jul 2008 16:42:03 +0000 lvm2 (2.02.39-1) unstable; urgency=low * New upstream version. * Make /dev/$vgname readable by anyone, it is not private data as /dev/mapper is already readable. -- Bastian Blank Tue, 15 Jul 2008 20:05:08 +0200 lvm2 (2.02.39-0ubuntu11) karmic; urgency=low * Copy /etc/lvm/lvm.conf into the initramfs (LP: #246324). -- Colin Watson Wed, 15 Jul 2009 13:52:21 +0100 lvm2 (2.02.39-0ubuntu10) karmic; urgency=low * debian/control: Increase dependencies for vol_id->blkid transition. -- Scott James Remnant Tue, 12 May 2009 10:19:09 +0100 lvm2 (2.02.39-0ubuntu9) jaunty; urgency=low * debian/patches/avoid-dev-block.patch: Prefer any other device name over names in /dev/block/ (LP: #341928). -- Colin Watson Wed, 08 Apr 2009 14:19:32 +0100 lvm2 (2.02.39-0ubuntu8) jaunty; urgency=low * Revert quilt damage to two other patches. -- Scott James Remnant Tue, 24 Feb 2009 00:26:56 +0000 lvm2 (2.02.39-0ubuntu7) jaunty; urgency=low * debian/patches/open-readonly.patch: - Generally we don't need to write to every single block device we open, in fact if we do that when scanning we'll make udev think they all changed, and it could run "lvm vgscan" again! When the file descriptor is needed for writing, it will be closed and opened again. LP: #332270. -- Scott James Remnant Mon, 23 Feb 2009 21:44:51 +0000 lvm2 (2.02.39-0ubuntu6) jaunty; urgency=low * Bump build-dependency on debhelper to ensure we get the right one. -- Scott James Remnant Fri, 09 Jan 2009 14:09:31 +0000 lvm2 (2.02.39-0ubuntu5) jaunty; urgency=low * Update udev rules.d path to /lib/udev/rules.d, (LP #314879) and add versioned dependency on udev accordingly. * Add versioned breaks on udev to make sure we do the upgrade in the correct order. * Add versioned dependency on watershed version that installs into initramfs. -- Soren Hansen Fri, 09 Jan 2009 13:46:10 +0100 lvm2 (2.02.39-0ubuntu4) jaunty; urgency=low * Change dependency on udev to one on watershed. -- Scott James Remnant Mon, 05 Jan 2009 16:54:00 +0000 lvm2 (2.02.39-0ubuntu3) jaunty; urgency=low * Rebuild for armel. -- Matthias Klose Thu, 20 Nov 2008 10:51:16 +0000 lvm2 (2.02.39-0ubuntu2) intrepid; urgency=low * Backport from Debian unstable (Bastian Blank): - Disable readline support in udeb. (closes: #491203, LP: #263558) -- Colin Watson Mon, 01 Sep 2008 16:47:50 +0100 lvm2 (2.02.39-0ubuntu1) intrepid; urgency=low * New upstream release (LP: #239460). * Merges 2.02.35-1 from Debian. * Increase devmapper dependency to (>> 2:1.02.27) due to new API. * Re-add quilt to Build-Depends. * Add missing Build-Depends on autoconf and libtool. -- James Westby Tue, 01 Jul 2008 16:39:18 +0100 lvm2 (2.02.38-1) unstable; urgency=low * New upstream version. * Update standards version to 3.7.3, no changes. * Only ignore known VCS dirs (closes: #482745) -- Bastian Blank Sun, 22 Jun 2008 11:19:29 +0200 lvm2 (2.02.35-1) unstable; urgency=low * New upstream version. -- Bastian Blank Sun, 20 Apr 2008 20:11:53 +0200 lvm2 (2.02.33-2) unstable; urgency=low * Fix LSB header of init script. -- Bastian Blank Mon, 10 Mar 2008 22:41:13 +0100 lvm2 (2.02.33-1) unstable; urgency=low * New upstream version. * Remove loading of additional modules from init script. -- Bastian Blank Fri, 15 Feb 2008 16:21:44 +0000 lvm2 (2.02.31-1) unstable; urgency=low * New upstream version. * Readd clvm. * Add LSB header to lvm2 init script. (closes: #426108) -- Bastian Blank Tue, 22 Jan 2008 16:45:09 +0000 lvm2 (2.02.29-1) unstable; urgency=low * New upstream version. * Load modules. * Don't longer directly link libncurses, libselinux and librt. * Drop lvm1 support in lvm2-udeb. * Force modprobe path to enable module loading. -- Bastian Blank Thu, 10 Jan 2008 13:36:53 +0000 lvm2 (2.02.26-1ubuntu11) intrepid; urgency=low * debian/control: build-deps on newer libcman and libdlm to guarantee a build against new libcman3 and libdlm3 soname. -- Fabio M. Di Nitto Tue, 26 Aug 2008 14:18:13 +0200 lvm2 (2.02.26-1ubuntu10) intrepid; urgency=low * debian/initramfs-tools/scripts/init-premount/lvm2: - use new named mountroot-fail hook ordering - silently detect array failures * lib/locking/cluster_locking.c, daemons/clvmd/{refresh_,}clvmd.c: add include for sys/param.h to catch limits, where PIPE_BUF went to live. -- Kees Cook Mon, 28 Jul 2008 12:22:26 -0700 lvm2 (2.02.26-1ubuntu9) hardy; urgency=low * Include virtio block type in the filters. (LP: #218574) This change is included upstream in 2.02.34. -- James Westby Fri, 18 Apr 2008 14:08:56 +0100 lvm2 (2.02.26-1ubuntu8) hardy; urgency=low * debian/initramfs-tools/scripts/init-premount/lvm2: Ensure we exit if the script is called with mountfail. -- Luke Yelavich Mon, 18 Feb 2008 11:56:54 +1100 lvm2 (2.02.26-1ubuntu7) hardy; urgency=low * debian/initramfs-tools/scripts/init-premount/lvm2: /sbin/mdadm -> /sbin/lvm (Thanks Kees.) -- Luke Yelavich Fri, 15 Feb 2008 12:28:14 +1100 lvm2 (2.02.26-1ubuntu6) hardy; urgency=low * Create init-premount hook script for the initramfs, to provide information at boot, if the root device is not functional. * Tighten initramfs-tools dependency. -- Luke Yelavich Tue, 05 Feb 2008 14:16:36 +1100 lvm2 (2.02.26-1ubuntu5) hardy; urgency=low * Changes from Debian audited, remaining changes: - Recognise SUN's LDOM virtual block devices. (forwarded upstream and to Debian #455975). - Drop build-dependencies on libccs-dev and libgulm-dev since gulm locking is obsolete. (forwarded to Debian #455976). - Separate clvm package. (forwarded to Debian #455978). - Use udev to activate new LVM physical volumes, and thus volume groups and logical volumes. (forwarded to Debian #455979). - Copy lvm2.po to lvm2.pot for Rosetta. - Migrate configuration files from earlier Ubuntu versions. * Drop compilation without stack protector, no bugs are referenced as justification for that change. * Drop higher build requirements on libdlm-dev since we don't actually seem to have any patch that necessitates it (it builds fine with either, so just build with whatever we have). -- Scott James Remnant Wed, 12 Dec 2007 18:15:39 +0000 lvm2 (2.02.26-1ubuntu4) gutsy; urgency=low * Bump dmsetup Suggests: to a Depends:, since without it we do not get /dev/disks/by-uuid/ and thus cannot mount anything. (LP: #126776) -- Martin Pitt Thu, 19 Jul 2007 16:55:25 +0200 lvm2 (2.02.26-1ubuntu3) gutsy; urgency=low * Max partitions for vdisk is 8 and not 16. -- Fabio M. Di Nitto Thu, 19 Jul 2007 07:32:59 +0200 lvm2 (2.02.26-1ubuntu2) gutsy; urgency=low * Make lvm2 recognize SUN's LDOM virtual disks. -- Fabio M. Di Nitto Tue, 17 Jul 2007 09:37:50 +0200 lvm2 (2.02.26-1ubuntu1) gutsy; urgency=low * Merge from debian unstable, remaining changes: - Drop libccs-dev/libgulm-dev Build-Dep - Keep clvm around and all related bits (init, defaults, etc) - scan and activate new volumes whenever udev detects a new block device containing LVM metadata - compile with -fno-stack-protector - clvm depends on cman, rather than suggests, and don't support fence - remove lvm2 init script, since it clashes with our udev rules - make initramfs hook prereq on udev - copy the lvm binary and udev rules across - load the dm-mod, dm-snapshot and dm-mirror modules - Depend on both udev and initramfs-tools - Build-Deps on a newer devmapper - Ubuntu maintainer foobar - copy lvm2.po to lvm2.pot for Rosetta -- Fabio M. Di Nitto Tue, 03 Jul 2007 08:20:30 +0200 lvm2 (2.02.26-1) unstable; urgency=low * New upstream release. * Drop clvm for now. -- Bastian Blank Fri, 22 Jun 2007 11:33:50 +0000 lvm2 (2.02.24-6ubuntu3) gutsy; urgency=low * Drop libccs-dev Build-Dep: - it was only required for gulm locking (dead since edgy). - HAVE_CCS has not been set for a while and ccs support never built since it was useful only for gulm. -- Fabio M. Di Nitto Mon, 11 Jun 2007 12:03:35 +0200 lvm2 (2.02.24-6ubuntu2) gutsy; urgency=low * Readd clvm init script. * Fix clvm.init: - not run if there is no cluster.conf - not run if cman is not running. - it's ok to fail on stop. (--oknodo) - wait_for_nodes only if we can start. (Closes LP: #61794, #115828, #108704, #108120) -- Fabio M. Di Nitto Fri, 08 Jun 2007 13:09:50 +0200 lvm2 (2.02.24-6ubuntu1) gutsy; urgency=low * Merge from debian unstable, remaining changes: - tighter build-depends on libccs-dev, libcman-dev & libdlm-dev - scan and activate new volumes whenever udev detects a new block device containing LVM metadata. - compile with -fno-stack-protector - copy lvm2.po to lvm2.pot for Rosetta - clvm depends on cman, rather than suggests, and don't support fence - init script for clvm * Turns out that doing merges dependency-first isn't necessarily the right way; this package replaces lvm-common! So merge changes I just made there to here: - remove the init script, since it clashes with our udev rules - make initramfs hook prereq on udev - copy the lvm binary and udev rules across - load the dm-mod, dm-snapshot and dm-mirror modules * Depend on both udev and initramfs-tools -- Scott James Remnant Tue, 22 May 2007 12:43:07 +0100 lvm2 (2.02.24-6) unstable; urgency=low * Also replace lvm-common. -- Bastian Blank Wed, 11 Apr 2007 20:40:39 +0000 lvm2 (2.02.24-5) unstable; urgency=low * Install correct files in initramfs-tools hook. (closes: #418652, #418661) -- Bastian Blank Wed, 11 Apr 2007 05:43:40 +0000 lvm2 (2.02.24-4) unstable; urgency=low * Make initramfs-tools hook also executable. -- Bastian Blank Tue, 10 Apr 2007 09:01:33 +0000 lvm2 (2.02.24-3) unstable; urgency=low * Make initramfs-tools script executable. (closes: #418490) -- Bastian Blank Tue, 10 Apr 2007 08:35:09 +0000 lvm2 (2.02.24-2) unstable; urgency=low * Really add init script. * Remove old code from maintainer scripts. -- Bastian Blank Tue, 10 Apr 2007 08:02:39 +0000 lvm2 (2.02.24-1) unstable; urgency=low * Add initramfs-tools hooks. * New upstream version. * Remove O_NOATIME hack. * Remove lvm2create_initrd. (closes: #417938) * Deprecate lvm-common. -- Bastian Blank Mon, 9 Apr 2007 18:58:57 +0000 lvm2 (2.02.06-4) unstable; urgency=low * Update translations. - Norwegian Bokmål (closes: #393191) - German (closes: #396268) - Galician (closes: #411832) - Swedish -- Bastian Blank Tue, 27 Feb 2007 18:53:04 +0000 lvm2 (2.02.06-3) unstable; urgency=low * Update translations. (closes: #349843) - Vietnamese - Swedish - French - Czech - Dutch - Portuguese - Catalan * Use error debconf template. -- Bastian Blank Sun, 15 Oct 2006 12:05:01 +0000 lvm2 (2.02.06-2ubuntu9) feisty; urgency=low * Remove the call to vgck on the creation of devmapper devices; this would cause udev to block, and thus prevent LVM from creating snapshot devices. LP: #84672. (This also needs a newer libdevmapper to complete the fix) * Rename 70-lvm.rules to 85-lvm.rules so that it appears at the correct point; remove the old file rather than transitioning since it was broken anyway. -- Scott James Remnant Fri, 30 Mar 2007 17:29:09 +0100 lvm2 (2.02.06-2ubuntu8) feisty; urgency=low UdevLvm fix: * Run vgscan and vgchange on block device change as well as add. -- Ian Jackson Tue, 6 Feb 2007 19:25:40 +0000 lvm2 (2.02.06-2ubuntu7) feisty; urgency=low UdevLvm: * Force loading of dm_mod in initramfs (for some reason the lvm tools do not do this themselves). * Update the initramfs in the postinst. * Update the 70-lvm.rules to - run vgscan as needed; - invoke things via /sbin/lvm rather than relying on the symlinks - run vgck and not vgmknodes (since udev makes the nodes now) * Declare Breaks against old lvm-common and old udev, since our new node generation requires the new working machinery in lvm-common and the corresponding support in udev. -- Ian Jackson Tue, 6 Feb 2007 16:35:04 +0000 lvm2 (2.02.06-2ubuntu6) feisty; urgency=low * Backport endian fix for dev_is_md from upstream. After a deeper investigation we found out that md super block 0.90.0 are machine endian and super block 1 or higher are little endian. On big endian machine (that are the only one affected) we need to compare both values. -- Fabio M. Di Nitto Sun, 28 Jan 2007 05:51:59 +0100 lvm2 (2.02.06-2ubuntu5) feisty; urgency=low [ Fabio M. Di Nitto ] * Fix dev_is_md check on big endian machines. -- Fabio M. Di Nitto Thu, 25 Jan 2007 16:55:37 +0100 lvm2 (2.02.06-2ubuntu4) feisty; urgency=low UdevLvm implementation: * Provide udev rules to 1. run vgchange to activate lvs on new block devices containing lvm volumes; 2. run vgmknodes when new dm devices appear, to ensure that things which might depend on the lv symlinks only run after vgchange has finished. * Do symlink-to-..tmp-and-then-rename rather than unlink/symlink, in vgchange, vgmknodes, etc., for /dev/vg/lv link. (This fixes an obscure race. Reported with patch to Debian as #402132.) -- Ian Jackson Fri, 8 Dec 2006 15:22:20 +0000 lvm2 (2.02.06-2ubuntu3) edgy; urgency=low * Disable gcc stack protector to fix some weird segfaults/bus errors. -- Fabio M. Di Nitto Wed, 13 Sep 2006 09:59:29 +0200 lvm2 (2.02.06-2ubuntu2) edgy; urgency=low * Drop B-D on libgulm-dev since gulm locking is obsoleted. * Update Depends: to drop gulm and fence. * Rebuild for libdlm2. -- Fabio M. Di Nitto Thu, 27 Jul 2006 05:50:20 +0200 lvm2 (2.02.06-2ubuntu1) edgy; urgency=low * Merge from debian unstable. -- Michael Vogt Fri, 30 Jun 2006 11:16:28 +0200 lvm2 (2.02.06-2) unstable; urgency=low * Fix return value for unknown vg. (closes: #373644) -- Bastian Blank Wed, 14 Jun 2006 23:47:36 +0200 lvm2 (2.02.06-1) unstable; urgency=low * New upstream version. -- Bastian Blank Tue, 13 Jun 2006 07:35:37 +0000 lvm2 (2.02.05-3) unstable; urgency=low * Realy set default permissions. -- Bastian Blank Tue, 6 Jun 2006 17:21:18 +0000 lvm2 (2.02.05-2) unstable; urgency=low * Set default permissions to 0, 6, 0660. (closes: #370684) -- Bastian Blank Tue, 06 Jun 2006 13:01:13 +0000 lvm2 (2.02.05-1) unstable; urgency=low * New upstream version. * Don't longer disallow installation on older kernels. (closes: #358373) * Explicitely link libpthread. (closes: #358305) -- Bastian Blank Fri, 12 May 2006 18:20:01 +0000 lvm2 (2.02.02-1ubuntu1) dapper; urgency=low * merged with debian (required to fix ubuntu #38007) * daemons/clvmd/Makefile.in: * added -lpthreads to LDFLAGS to make it build -- Michael Vogt Mon, 8 May 2006 11:42:45 +0200 lvm2 (2.02.02-1) unstable; urgency=low * New upstream version. * Enable md_component_detection. (closes: #278180) * Set device permissions. * Don't use O_DIRECT on armeb. (closes: #351632) -- Bastian Blank Sun, 12 Feb 2006 13:00:23 +0100 lvm2 (2.02.01-3) unstable; urgency=low * Fix snapshot check to work with set -e. (closes: #348154) -- Bastian Blank Sun, 15 Jan 2006 13:29:06 +0100 lvm2 (2.02.01-2) unstable; urgency=low * Abort installation on kernel < 2.6.12. -- Bastian Blank Sat, 14 Jan 2006 10:51:33 +0100 lvm2 (2.02.01-1) unstable; urgency=low * New upstream version. -- Bastian Blank Sat, 03 Dec 2005 18:15:24 +0100 lvm2 (2.02.00-1) unstable; urgency=low * New upstream version. -- Bastian Blank Sat, 26 Nov 2005 10:26:42 +0100 lvm2 (2.01.15-0ubuntu5) dapper; urgency=low * debian/rules: Copy lvm2.po to lvm2.pot at build, remove it at clean. Closes: -- Martin Pitt Thu, 4 May 2006 12:53:41 +0200 lvm2 (2.01.15-0ubuntu4) dapper; urgency=low * Call vgscan instead of pvscan in clvm init script. * Fix while condition in clvm init script to catch only cluster errors. -- Fabio M. Di Nitto Fri, 07 Apr 2006 06:53:52 +0200 lvm2 (2.01.15-0ubuntu3) dapper; urgency=low * Call pvscan in clvm init script after clvmd is running to refresh the cache or vgchange might fail. * Add wait_for_nodes loop to avoid a possible race condition when starting up the entire cluster all together to clvm init script. * Make clvm init script use /etc/default/clvm instead of /etc/default/clvmd. * Ship a default clvm. -- Fabio M. Di Nitto Thu, 06 Apr 2006 07:32:53 +0200 lvm2 (2.01.15-0ubuntu2) dapper; urgency=low * Add init script for clvmd. * clvm now Depends: cman | gulm and fence. * Build clvm with gulm support. * Add Build-Deps: libccs-dev and libgulm-dev. -- Fabio M. Di Nitto Wed, 05 Apr 2006 12:52:08 +0200 lvm2 (2.01.15-0ubuntu1) dapper; urgency=low * New upstream version. -- Matthias Klose Mon, 23 Jan 2006 09:58:28 +0100 lvm2 (2.01.14-3ubuntu2) dapper; urgency=low * Drop selinux support since it breaks lvm2-udeb. * Make sure to build with a proper libdevmapper. -- Fabio M. Di Nitto Tue, 29 Nov 2005 09:11:39 +0100 lvm2 (2.01.14-3ubuntu1) dapper; urgency=low * Resynchronise with Debian. -- Fabio M. Di Nitto Fri, 25 Nov 2005 12:51:58 +0100 lvm2 (2.01.14-3) unstable; urgency=low * It is pronounced readline, not ncurses. Fix build-deps. (closes: #330715) -- Bastian Blank Fri, 30 Sep 2005 13:14:25 +0200 lvm2 (2.01.14-2) unstable; urgency=low * Enable readline support for debs. (closes: #257406) * Fix O_DIRECT disable for hppa. (closes: #330166) -- Bastian Blank Wed, 28 Sep 2005 19:12:53 +0200 lvm2 (2.01.14-1) unstable; urgency=low * New upstream version. (closes: #320454) * Enable selinux support for debs. (closes: #315505) * Change optimization for udebs. -- Bastian Blank Mon, 15 Aug 2005 18:33:41 +0200 lvm2 (2.01.12-2) unstable; urgency=low * Fix LVM1 metadata support. (closes: #315339) -- Bastian Blank Wed, 22 Jun 2005 18:49:36 +0200 lvm2 (2.01.12-1) unstable; urgency=low * New upstream version. -- Bastian Blank Mon, 20 Jun 2005 16:50:41 +0200 lvm2 (2.01.11-1) unstable; urgency=low * New upstream version. * Reentregrate changes. -- Bastian Blank Sun, 19 Jun 2005 13:17:48 +0200 lvm2 (2.01.04-5ubuntu1) breezy; urgency=low * Bump Build-Deps on libncruses5-dev and libdlm-dev (1.x) -- Fabio M. Di Nitto Mon, 30 May 2005 11:05:56 +0200 lvm2 (2.01.04-5) unstable; urgency=low * Revert -4's rather widespread changes, except for the amd64 fix. -- Andres Salomon Thu, 28 Apr 2005 05:20:08 -0400 lvm2 (2.01.04-4) unstable; urgency=low * Don't longer use cdbs. * Remove cruft. * Workaround missing O_NOATIME on amd64. (closes: #298762) -- Bastian Blank Thu, 28 Apr 2005 09:58:00 +0200 lvm2 (2.01.04-3) unstable; urgency=high * Workaround missing O_NOATIME. (closes: #297010) -- Bastian Blank Tue, 08 Mar 2005 18:40:08 +0100 lvm2 (2.01.04-2) unstable; urgency=low * New maintainer. * Always build clvmd and bump version of needed libdlm. -- Bastian Blank Sun, 27 Feb 2005 16:49:32 +0100 lvm2 (2.01.04-1) unstable; urgency=low * New upstream Closes: #292984, 293174 -- Patrick Caulfield Thu, 17 Feb 2005 09:30:18 +0000 lvm2 (2.00.32-1) unstable; urgency=low * New upstream Closes: #283290, 284990, 285225 * Don't make /lib/lvm2 the default library directory as it causes initrd troubles. Closes: #287042 -- Patrick Caulfield Fri, 24 Dec 2004 12:27:05 +0000 lvm2 (2.00.31-1) unstable; urgency=low * New upstream. -- Patrick Caulfield Mon, 20 Dec 2004 13:27:43 +0000 lvm2 (2.00.29-1) unstable; urgency=low * New upstream * Only build clvmd where a libdlm is available. Doesn't exactly close #281433 but maybe reduces it to a wishlist bug. -- Patrick Caulfield Tue, 7 Dec 2004 10:54:43 +0000 lvm2 (2.00.25-1) unstable; urgency=low * New upstream Closes: 272117 * Remove useless "pvresize" command. Closes: #278597 * Add Brazilian debconf translation. Closes: #278732 * Remove "is not recommended for production use" from package description. Closes: #278919 * Add lvm2create_initrd to documentation directory. -- Patrick Caulfield Wed, 3 Nov 2004 09:37:56 +0000 lvm2 (2.00.24-2) unstable; urgency=low * Also provide "clvm" package for Cluster LVM daemon Closes: #276651 * Get rid of references to kernel-patch-device-mapper Closes: #275881 * Fix some Lintian warnings. -- Patrick Caulfield Sat, 16 Oct 2004 14:07:16 +0100 lvm2 (2.00.24-1) unstable; urgency=low * New upstream Closes: #268562, #270111 -- Patrick Caulfield Mon, 20 Sep 2004 09:03:57 +0100 lvm2 (2.00.22-1) unstable; urgency=low * New upstream This one really /does/ incorporate the swab stuff, sorry waldi. * Include Japanese po-debconf Closes: #270763 -- Patrick Caulfield Mon, 13 Sep 2004 09:12:07 +0100 lvm2 (2.00.21-2) unstable; urgency=low * Disable use of O_DIRECT on arm. Closes: #267157 -- Patrick Caulfield Mon, 23 Aug 2004 08:39:43 +0100 lvm2 (2.00.21-1) unstable; urgency=low * New upstream. * Update README.Debian to mention that later Debian 2.4 kernels have device-mapper included. * Really add French debconf transation (sorry) Closes: #260700 * Add Czech debconf translation Closes: #265545 -- Patrick Caulfield Fri, 20 Aug 2004 10:44:11 +0100 lvm2 (2.00.19-3) unstable; urgency=low * Use libc byteswap functions. Closes: #259733 * Add French debconfg translation Closes: #260700 -- Patrick Caulfield Mon, 2 Aug 2004 11:37:15 +0100 lvm2 (2.00.19-2) unstable; urgency=low * Switch to debconf-gettext templates Closes: #257681 * Fix snapshot warning so it doesn't error on a new installation. Closes: #256276 -- Patrick Caulfield Wed, 7 Jul 2004 15:31:33 +0100 lvm2 (2.00.19-1) unstable; urgency=low * New upstream(s) * Also added patch from upstream bk to fix problem with large 2.6 device numbers. Closes: #248477 -- Patrick Caulfield Thu, 1 Jul 2004 16:07:58 +0100 lvm2 (2.00.16-2) unstable; urgency=low * Switch md_component_detection OFF by default in config file. Closes: #248709, #252085 * Ignore cdroms by default in config file. * Warn about snapshot incompatibility with lvm10. -- Patrick Caulfield Fri, 11 Jun 2004 08:43:15 +0100 lvm2 (2.00.16-1) unstable; urgency=low * New Upstream version -- Patrick Caulfield Sun, 30 May 2004 10:40:04 +0100 lvm2 (2.00.15-3) unstable; urgency=low * Take over maintainership * Disable O_DIRECT on hppa. -- Patrick Caulfield Wed, 19 May 2004 09:05:29 +0100 lvm2 (2.00.15-2) unstable; urgency=low * Fix FTBFS (closes: #248143). -- Andres Salomon Sun, 09 May 2004 13:57:07 -0400 lvm2 (2.00.15-1) unstable; urgency=low * New upstream release. * Drop 001-separated.patch; merged upstream. * Drop 002-vgdisplay_colon.patch; merged upstream. * Compile w/ -D_FILE_OFFSET_BITS=64 (thanks to Thierry DE CARVALHO for the suggestion/patch). * Add 004-make_clean.patch and 005-make_distclean.patch; fixes build system problem. * Add Patrick Caulfield as a co-maintainer. * Disable O_DIRECT for mips and mipsel (closes: #247896). -- Andres Salomon Mon, 03 May 2004 00:54:06 -0400 lvm2 (2.00.08-4) unstable; urgency=low * Fix libdevmapper-dev versioned dep (missing epoch). * Fix typos in manpage. (Closes: #226026) * Implement vgdisplay --colon. (Closes: #226056) * Add udeb for debian-installer. (Closes: #225178) * Remove lvm-default symlink in prerm. (Closes: #230543) -- Andres Salomon Sun, 04 Jan 2004 23:14:25 -0500 lvm2 (2.00.08-3) unstable; urgency=low * Add autotools-dev build-dep. -- Andres Salomon Sun, 14 Dec 2003 20:37:39 -0500 lvm2 (2.00.08-2) unstable; urgency=low * Update build-deps to require devmapper 1.00.07 or greater. -- Andres Salomon Sat, 06 Dec 2003 23:07:59 -0500 lvm2 (2.00.08-1) unstable; urgency=low * New upstream release. * Update package description. (Closes: #216441) * Tell cdbs where to find config.{sub,guess}. (Closes: #217457) -- Andres Salomon Sun, 30 Nov 2003 02:07:38 -0500 lvm2 (2.00.07-1) unstable; urgency=low * New upstream release. * Update standards-version. * Convert build system to cdbs. -- Andres Salomon Wed, 15 Oct 2003 01:27:48 -0400 lvm2 (2.00.06-1) unstable; urgency=low * New upstream release. -- Andres Salomon Fri, 22 Aug 2003 00:59:39 -0400 lvm2 (2.00.05-1) unstable; urgency=low * New upstream release. (Closes: #203571) * This release creates locking_dir if it doesn't exist. (Closes: #192789) * Fixes missing-symlink bug. (Closes: #204432) -- Andres Salomon Tue, 12 Aug 2003 00:00:41 -0400 lvm2 (1.95.15-4) unstable; urgency=low * Update libdevmapper-dev build-deps, so accidents like rebuilding against non-existent libdevmapper0 versions don't happen. -- Andres Salomon Thu, 07 Aug 2003 17:01:52 -0400 lvm2 (1.95.15-3) unstable; urgency=low * The naming-releases-is-lame release. * Put binaries in /lib/lvm-200 instead of /sbin, allowing lvm10 to be installed with lvm2. Also dropped init script. (Closes: #185245) * Clean up manpages/undocumented files. -- Andres Salomon Thu, 07 Aug 2003 01:04:59 -0400 lvm2 (1.95.15-2) unstable; urgency=low * Calm-before-the-storm release; the next one will either be 2.00 (once the kill-yer-VGs bug is fixed) or 1.95 with lvm10 compatibility (once patrick returns from vacation). * Update maintainer email address. * Update standards-version. * Rebuild against newly SONAME'd libdevmapper packages. (Closes: #199399) * When deactivating VGs, ignore failures related to file locking, as / might be read-only. (Closes: #192802) * Make backup of lvm2 metadata in postinst. (Closes: #189325) -- Andres Salomon Thu, 31 Jul 2003 01:36:44 -0400 lvm2 (1.95.11-1) unstable; urgency=low * New upstream release. (Closes: #171436) * Removed TODO and INTRO from debian/docs; added WHATS_NEW. * Remove vgcfgrestore.8 undocumented symlink. * Added a README.Debian, mentioning the device-mapper kernel module requirement that lvm2 has. (Closes: #171674, #163020) * Get rid of debian/conffiles (debhelper's smart enough to figure that out). * debian/copyright fix to appease lintian. * Fix typo in tools/commands.h that caused /usr/sbin/; to be created. -- Andres Salomon Mon, 9 Dec 2002 02:51:02 -0400 lvm2 (1.95.10-2) unstable; urgency=low * Fix software raid problems by ensuring lvm init script runs after raidtools init script. (Closes: #152569) -- Andres Salomon Tue, 3 Sep 2002 04:05:43 -0400 lvm2 (1.95.10-1) unstable; urgency=low * New upstream release (Beta 3.2). * Change all references to /dev/device-mapper/control to /dev/mapper/control. -- Andres Salomon Sun, 1 Sep 2002 18:55:12 -0400 lvm2 (0.95.05-3) unstable; urgency=low * Get rid of awk dependency in init script. (Closes: #146257) -- Andres Salomon Sun, 12 May 2002 04:39:06 -0500 lvm2 (0.95.05-2) unstable; urgency=low * Use ${shlibs:Depends} in Depends. * Get rid of postinst/postrm scripts, use debhelper's init script instead. * Add Conflicts against lvm10, lvm-common. * Fix endian issues on big-endian machines. -- Andres Salomon Thu, 2 May 2002 23:53:53 -0500 lvm2 (0.95.05-1) unstable; urgency=low * New release (Beta2). -- Andres Salomon Thu, 25 Apr 2002 00:37:41 -0500 lvm2 (0.95.04cvs20020306-1) unstable; urgency=low * CVS updated. * Convert from debian native package. -- Andres Salomon Wed, 6 Mar 2002 00:43:21 -0500 lvm2 (0.95.04cvs20020304) unstable; urgency=low * CVS updated. * Enhance init script; create devmapper control device, etc. * Add dmsetup as a suggestion. * Add /etc/lvm/lvm.conf conffile. * Add undocumented(7) for the commands missing manpages. -- Andres Salomon Mon, 4 Mar 2002 04:51:26 -0500 lvm2 (0.95.02cvs20020220) unstable; urgency=low * Initial Release. -- Andres Salomon Wed, 20 Feb 2002 03:17:25 -0500 debian/dmeventd.install0000664000000000000000000000010012102766326012362 0ustar lib/*/device-mapper sbin/dmeventd usr/share/man/man8/dmeventd.8 debian/clvm.default0000664000000000000000000000033212215547336011505 0ustar # Bourne shell compatible script, sourced by /etc/init.d/clvm to set # additional arguments for clvmd. # Startup timeout: CLVMDTIMEOUT=20 # Volume groups to activate on startup: # LVM_VGS="cluster_vg1 cluster_vg2" debian/libdevmapper1.02.1.symbols0000664000000000000000000002264212151621435013722 0ustar libdevmapper.so.1.02.1 libdevmapper1.02.1 #MINVER# Base@Base 2:1.02.20 dm_asprintf@Base 2:1.02.20 dm_basename@Base 2:1.02.20 dm_bit_and@Base 2:1.02.47 dm_bit_get_first@Base 2:1.02.20 dm_bit_get_next@Base 2:1.02.20 dm_bit_union@Base 2:1.02.20 dm_bitset_create@Base 2:1.02.20 dm_bitset_destroy@Base 2:1.02.20 dm_bitset_equal@Base 2:1.02.47 dm_bounds_check_debug@Base 2:1.02.20 dm_build_dm_name@Base 2:1.02.74 dm_build_dm_uuid@Base 2:1.02.74 dm_config_clone_node@Base 2:1.02.74 dm_config_clone_node_with_mem@Base 2:1.02.74 dm_config_create@Base 2:1.02.74 dm_config_create_node@Base 2:1.02.74 dm_config_create_value@Base 2:1.02.74 dm_config_destroy@Base 2:1.02.74 dm_config_find_bool@Base 2:1.02.74 dm_config_find_float@Base 2:1.02.74 dm_config_find_int64@Base 2:1.02.74 dm_config_find_int@Base 2:1.02.74 dm_config_find_node@Base 2:1.02.74 dm_config_find_str@Base 2:1.02.74 dm_config_find_str_allow_empty@Base 2:1.02.74 dm_config_from_string@Base 2:1.02.74 dm_config_get_custom@Base 2:1.02.74 dm_config_get_list@Base 2:1.02.74 dm_config_get_section@Base 2:1.02.74 dm_config_get_str@Base 2:1.02.74 dm_config_get_uint32@Base 2:1.02.74 dm_config_get_uint64@Base 2:1.02.74 dm_config_has_node@Base 2:1.02.74 dm_config_insert_cascaded_tree@Base 2:1.02.74 dm_config_maybe_section@Base 2:1.02.74 dm_config_memory@Base 2:1.02.74 dm_config_parent_name@Base 2:1.02.74 dm_config_parse@Base 2:1.02.74 dm_config_remove_cascaded_tree@Base 2:1.02.74 dm_config_set_custom@Base 2:1.02.74 dm_config_tree_find_bool@Base 2:1.02.74 dm_config_tree_find_float@Base 2:1.02.74 dm_config_tree_find_int64@Base 2:1.02.74 dm_config_tree_find_int@Base 2:1.02.74 dm_config_tree_find_node@Base 2:1.02.74 dm_config_tree_find_str@Base 2:1.02.74 dm_config_tree_find_str_allow_empty@Base 2:1.02.74 dm_config_write_node@Base 2:1.02.74 dm_config_write_one_node@Base 2:1.02.77 dm_cookie_supported@Base 2:1.02.36 dm_count_chars@Base 2:1.02.74 dm_create_dir@Base 2:1.02.24 dm_create_lockfile@Base 2:1.02.63 dm_daemon_is_running@Base 2:1.02.63 dm_device_get_name@Base 2:1.02.74 dm_device_has_holders@Base 2:1.02.74 dm_device_has_mounted_fs@Base 2:1.02.74 dm_dir@Base 2:1.02.20 dm_driver_version@Base 2:1.02.20 dm_dump_memory_debug@Base 2:1.02.20 dm_escape_double_quotes@Base 2:1.02.74 dm_escaped_len@Base 2:1.02.74 dm_fclose@Base 2:1.02.24 dm_format_dev@Base 2:1.02.20 dm_free_aux@Base 2:1.02.20 dm_get_library_version@Base 2:1.02.20 dm_get_name_mangling_mode@Base 2:1.02.74 dm_get_next_target@Base 2:1.02.20 dm_get_status_thin@Base 2:1.02.74 dm_get_status_thin_pool@Base 2:1.02.74 dm_get_suspended_counter@Base 2:1.02.65 dm_hash_create@Base 2:1.02.20 dm_hash_destroy@Base 2:1.02.20 dm_hash_get_data@Base 2:1.02.20 dm_hash_get_first@Base 2:1.02.20 dm_hash_get_key@Base 2:1.02.20 dm_hash_get_next@Base 2:1.02.20 dm_hash_get_num_entries@Base 2:1.02.20 dm_hash_insert@Base 2:1.02.20 dm_hash_insert_binary@Base 2:1.02.20 dm_hash_iter@Base 2:1.02.20 dm_hash_lookup@Base 2:1.02.20 dm_hash_lookup_binary@Base 2:1.02.20 dm_hash_remove@Base 2:1.02.20 dm_hash_remove_binary@Base 2:1.02.20 dm_hash_wipe@Base 2:1.02.20 dm_is_dm_major@Base 2:1.02.20 dm_is_empty_dir@Base 2:1.02.74 dm_lib_exit@Base 2:1.02.20 dm_lib_init@Base 2:1.02.74 dm_lib_release@Base 2:1.02.20 dm_list_add@Base 2:1.02.30 dm_list_add_h@Base 2:1.02.30 dm_list_del@Base 2:1.02.30 dm_list_empty@Base 2:1.02.30 dm_list_end@Base 2:1.02.30 dm_list_first@Base 2:1.02.30 dm_list_init@Base 2:1.02.30 dm_list_last@Base 2:1.02.30 dm_list_move@Base 2:1.02.30 dm_list_next@Base 2:1.02.30 dm_list_prev@Base 2:1.02.30 dm_list_size@Base 2:1.02.30 dm_list_splice@Base 2:1.02.48 dm_list_start@Base 2:1.02.30 dm_log@Base 2:1.02.20 dm_log_init@Base 2:1.02.20 dm_log_init_verbose@Base 2:1.02.20 dm_log_is_non_default@Base 2:1.02.36 dm_log_with_errno@Base 2:1.02.36 dm_log_with_errno_init@Base 2:1.02.36 dm_malloc_aux@Base 2:1.02.20 dm_malloc_aux_debug@Base 2:1.02.20 dm_mknodes@Base 2:1.02.20 dm_pool_abandon_object@Base 2:1.02.20 dm_pool_alloc@Base 2:1.02.20 dm_pool_alloc_aligned@Base 2:1.02.20 dm_pool_begin_object@Base 2:1.02.20 dm_pool_create@Base 2:1.02.20 dm_pool_destroy@Base 2:1.02.20 dm_pool_empty@Base 2:1.02.20 dm_pool_end_object@Base 2:1.02.20 dm_pool_free@Base 2:1.02.20 dm_pool_grow_object@Base 2:1.02.20 dm_pool_lock@Base 2:1.02.67 dm_pool_locked@Base 2:1.02.67 dm_pool_strdup@Base 2:1.02.20 dm_pool_strndup@Base 2:1.02.20 dm_pool_unlock@Base 2:1.02.67 dm_pool_zalloc@Base 2:1.02.20 dm_prepare_selinux_context@Base 2:1.02.63 dm_realloc_aux@Base 2:1.02.20 dm_regex_create@Base 2:1.02.20 dm_regex_fingerprint@Base 2:1.02.63 dm_regex_match@Base 2:1.02.20 dm_report_field_int32@Base 2:1.02.27 dm_report_field_int@Base 2:1.02.27 dm_report_field_set_value@Base 2:1.02.27 dm_report_field_string@Base 2:1.02.27 dm_report_field_uint32@Base 2:1.02.27 dm_report_field_uint64@Base 2:1.02.27 dm_report_free@Base 2:1.02.27 dm_report_init@Base 2:1.02.27 dm_report_object@Base 2:1.02.27 dm_report_output@Base 2:1.02.27 dm_report_set_output_field_name_prefix@Base 2:1.02.27 dm_set_dev_dir@Base 2:1.02.20 dm_set_name_mangling_mode@Base 2:1.02.74 dm_set_selinux_context@Base 2:1.02.20 dm_set_sysfs_dir@Base 2:1.02.74 dm_set_uuid_prefix@Base 2:1.02.74 dm_snprintf@Base 2:1.02.20 dm_split_lvm_name@Base 2:1.02.20 dm_split_words@Base 2:1.02.20 dm_strdup_aux@Base 2:1.02.20 dm_strncpy@Base 2:1.02.74 dm_sysfs_dir@Base 2:1.02.74 dm_task_add_target@Base 2:1.02.20 dm_task_create@Base 2:1.02.20 dm_task_destroy@Base 2:1.02.20 dm_task_enable_checks@Base 2:1.02.65 dm_task_get_deps@Base 2:1.02.20 dm_task_get_driver_version@Base 2:1.02.20 dm_task_get_info@Base 2:1.02.20 dm_task_get_name@Base 2:1.02.20 dm_task_get_name_mangled@Base 2:1.02.74 dm_task_get_name_unmangled@Base 2:1.02.74 dm_task_get_names@Base 2:1.02.20 dm_task_get_read_ahead@Base 2:1.02.24 dm_task_get_uuid@Base 2:1.02.20 dm_task_get_uuid_mangled@Base 2:1.02.77 dm_task_get_uuid_unmangled@Base 2:1.02.77 dm_task_get_versions@Base 2:1.02.20 dm_task_no_flush@Base 2:1.02.20 dm_task_no_open_count@Base 2:1.02.20 dm_task_query_inactive_table@Base 2:1.02.44 dm_task_retry_remove@Base 2:1.02.74 dm_task_run@Base 2:1.02.20 dm_task_secure_data@Base 2:1.02.63 dm_task_set_add_node@Base 2:1.02.63 dm_task_set_cookie@Base 2:1.02.36 dm_task_set_event_nr@Base 2:1.02.20 dm_task_set_geometry@Base 2:1.02.20 dm_task_set_gid@Base 2:1.02.20 dm_task_set_major@Base 2:1.02.20 dm_task_set_major_minor@Base 2:1.02.36 dm_task_set_message@Base 2:1.02.20 dm_task_set_minor@Base 2:1.02.20 dm_task_set_mode@Base 2:1.02.20 dm_task_set_name@Base 2:1.02.20 dm_task_set_newname@Base 2:1.02.20 dm_task_set_newuuid@Base 2:1.02.63 dm_task_set_read_ahead@Base 2:1.02.24 dm_task_set_ro@Base 2:1.02.20 dm_task_set_sector@Base 2:1.02.20 dm_task_set_uid@Base 2:1.02.20 dm_task_set_uuid@Base 2:1.02.20 dm_task_skip_lockfs@Base 2:1.02.20 dm_task_suppress_identical_reload@Base 2:1.02.20 dm_task_update_nodes@Base 2:1.02.20 dm_tree_activate_children@Base 2:1.02.20 dm_tree_add_dev@Base 2:1.02.20 dm_tree_add_dev_with_udev_flags@Base 2:1.02.44 dm_tree_add_new_dev@Base 2:1.02.20 dm_tree_add_new_dev_with_udev_flags@Base 2:1.02.39 dm_tree_children_use_uuid@Base 2:1.02.20 dm_tree_create@Base 2:1.02.20 dm_tree_deactivate_children@Base 2:1.02.20 dm_tree_find_node@Base 2:1.02.20 dm_tree_find_node_by_uuid@Base 2:1.02.20 dm_tree_free@Base 2:1.02.20 dm_tree_get_cookie@Base 2:1.02.36 dm_tree_next_child@Base 2:1.02.20 dm_tree_node_add_crypt_target@Base 2:1.02.36 dm_tree_node_add_error_target@Base 2:1.02.20 dm_tree_node_add_linear_target@Base 2:1.02.20 dm_tree_node_add_mirror_target@Base 2:1.02.20 dm_tree_node_add_mirror_target_log@Base 2:1.02.20 dm_tree_node_add_null_area@Base 2:1.02.67 dm_tree_node_add_raid_target@Base 2:1.02.67 dm_tree_node_add_replicator_dev_target@Base 2:1.02.63 dm_tree_node_add_replicator_target@Base 2:1.02.63 dm_tree_node_add_snapshot_merge_target@Base 2:1.02.44 dm_tree_node_add_snapshot_origin_target@Base 2:1.02.20 dm_tree_node_add_snapshot_target@Base 2:1.02.20 dm_tree_node_add_striped_target@Base 2:1.02.20 dm_tree_node_add_target_area@Base 2:1.02.20 dm_tree_node_add_thin_pool_message@Base 2:1.02.74 dm_tree_node_add_thin_pool_target@Base 2:1.02.74 dm_tree_node_add_thin_target@Base 2:1.02.74 dm_tree_node_add_zero_target@Base 2:1.02.20 dm_tree_node_get_context@Base 2:1.02.20 dm_tree_node_get_info@Base 2:1.02.20 dm_tree_node_get_name@Base 2:1.02.20 dm_tree_node_get_uuid@Base 2:1.02.20 dm_tree_node_num_children@Base 2:1.02.20 dm_tree_node_set_callback@Base 2:1.02.74 dm_tree_node_set_presuspend_node@Base 2:1.02.63 dm_tree_node_set_read_ahead@Base 2:1.02.24 dm_tree_node_set_thin_external_origin@Base 2:1.02.77 dm_tree_node_set_thin_pool_discard@Base 2:1.02.77 dm_tree_node_set_udev_flags@Base 2:1.02.74 dm_tree_node_size_changed@Base 2:1.02.36 dm_tree_preload_children@Base 2:1.02.20 dm_tree_retry_remove@Base 2:1.02.74 dm_tree_set_cookie@Base 2:1.02.36 dm_tree_skip_lockfs@Base 2:1.02.20 dm_tree_suspend_children@Base 2:1.02.20 dm_tree_use_no_flush_suspend@Base 2:1.02.20 dm_udev_complete@Base 2:1.02.36 dm_udev_create_cookie@Base 2:1.02.47 dm_udev_get_checking@Base 2:1.02.44 dm_udev_get_sync_support@Base 2:1.02.36 dm_udev_set_checking@Base 2:1.02.44 dm_udev_set_sync_support@Base 2:1.02.36 dm_udev_wait@Base 2:1.02.36 dm_unescape_colons_and_at_signs@Base 2:1.02.74 dm_unescape_double_quotes@Base 2:1.02.74 dm_uuid_prefix@Base 2:1.02.74 dm_vasprintf@Base 2:1.02.77 dm_zalloc_aux@Base 2:1.02.63 dm_zalloc_aux_debug@Base 2:1.02.63 debian/liblvm2cmd2.02.install0000664000000000000000000000003112102766326013114 0ustar lib/*/liblvm2cmd.so.2.02 debian/lvm2.manpages0000664000000000000000000000006511750751164011575 0ustar debian/build/install_deb/usr/share/man/man8/fsadm.8 debian/copyright0000664000000000000000000000403711750751164011136 0ustar This package was downloaded from: ftp://sources.redhat.com/pub/lvm2/ Copyright: Copyright (C) 1997-2004 Sistina Software 2004 Luca Berra 2004-2009 Red Hat, Inc 2005-2007 NEC Corporation License for libdevmapper, liblvm and the lvm tools lib: This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU Lesser General Public License v2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'. License for the daemons, tools, tests and build system: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License v2 can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is: Copyright (C) 2005-2009 Bastian Blank and is licensed under the GPL v2, see above. debian/lvm2.postinst0000664000000000000000000000032712102766326011664 0ustar #!/bin/sh set -e case "$1" in configure) vgcfgbackup >/dev/null 2>&1 || : if [ -x /usr/sbin/update-initramfs ]; then update-initramfs -u fi ;; esac #DEBHELPER# exit 0 debian/clvmd.ra0000664000000000000000000001243712102766326010635 0ustar #!/bin/bash # Copyright (c) 2008 Xinwei Hu # All Rights Reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of version 2 of the GNU General Public License as # published by the Free Software Foundation. # # This program is distributed in the hope that it would be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # Further, this software is distributed without any warranty that it is # free of the rightful claim of any third person regarding infringement # or the like. Any license provided herein, whether implied or # otherwise, applies only to this software file. Patent licenses, if # any, provided herein do not apply to combinations of this program with # other software, or any other product whatsoever. # # You should have received a copy of the GNU General Public License # along with this program; if not, write the Free Software Foundation, # Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. # ####################################################################### # OCF initialization . ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs # Parameter defaults : ${OCF_RESKEY_CRM_meta_gloablly_unique:="false"} : ${OCF_RESKEY_daemon_timeout:="80"} : ${OCF_RESKEY_daemon_options:="-d0"} # Common variables DAEMON="/usr/sbin/clvmd" status_daemon() { PID=`pidof "$DAEMON"` if [ -n "$PID" ]; then return $OCF_SUCCESS fi return $OCF_NOT_RUNNING } bringup_daemon() { if [ ! -e "$DAEMON" ]; then ocf_log err "Required binary not found: $DAEMON" return $OCF_ERR_INSTALLED fi if [ ! -d "/run/lvm" ]; then mkdir /run/lvm fi "$DAEMON" "$OCF_RESKEY_daemon_options"; rc=$? if [ $rc != 0 ]; then ocf_log err "Could not start $DAEMON" return $OCF_ERR_GENERIC fi sleep 1 COUNT=0 rc=$OCF_NOT_RUNNING while [ $rc = $OCF_NOT_RUNNING ]; do COUNT=`expr $COUNT + 1` if [ $COUNT -gt $OCF_RESKEY_daemon_timeout ]; then ocf_log err "`basename $DAEMON` did not come up" return $OCF_ERR_GENERIC fi status_daemon; rc=$? sleep 1 done return $rc } kill_daemon() { status_daemon; rc=$? if [ $rc != $OCF_SUCCESS ]; then return rc fi ocf_log info "Stopping `basename "$DAEMON"`" killall -INT "$DAEMON" sleep 1 status_daemon; rc=$? COUNT=0 while [ $rc = $OCF_SUCCESS ]; do COUNT=`expr $COUNT + 1` if [ $COUNT -gt $OCF_RESKEY_daemon_timeout ]; then ocf_log err "`basename $DAEMON` shutdown emergency" killall -9 "$DAEMON" status_daemon; rc=$? if [ $rc = $OCF_NOT_RUNNING ]; then return $OCF_SUCCESS else return $OCF_ERR_GENERIC fi fi killall -INT "$DAEMON" sleep 1 status_daemon; rc=$? done return $OCF_SUCCESS } clvmd_start() { clvmd_monitor; rc=$? if [ $rc != $OCF_NOT_RUNNING ]; then return $rc fi ocf_log info "Starting $OCF_RESOURCE_INSTANCE" bringup_daemon return $? } clvmd_stop() { clvmd_monitor; rc=$? case $rc in $OCF_NOT_RUNNING) return $OCF_SUCCESS;; esac ocf_log info "Stopping $OCF_RESOURCE_INSTANCE" kill_daemon } clvmd_monitor() { clvmd_validate status_daemon return $? } clvmd_usage() { echo "usage: $0 {start|stop|monitor|validate-all|meta-data}" echo " Expects to have a fully populated OCF RA-compliant environment set." echo " In particualr, a value for OCF_ROOT" } clvmd_validate() { : TODO: check for gloablly_unique=true and return OCF_ERR_CONFIGURED case ${OCF_RESKEY_CRM_meta_gloablly_unique} in yes|Yes|true|True|1) ocf_log err "$OCF_RESOURCE_INSTANCE must be configured with the gloablly_unique=false meta attribute" exit $OCF_ERR_CONFIGURED ;; esac return $OCF_SUCCESS } meta_data() { cat < 1.0 This is a clvmd Resource Agent. It starts clvmd as anonymous clones. clvmd resource agent Number of seconds to allow the control daemon to come up and down Daemon Timeout Options to clvmd. Refer to clvmd.8 for detailed descriptions. Daemon Options END } case $__OCF_ACTION in meta-data) meta_data exit $OCF_SUCCESS ;; start) clvmd_start ;; stop) clvmd_stop ;; monitor) clvmd_monitor ;; validate-all) clvmd_validate ;; usage|help) clvmd_usage exit $OCF_SUCCESS ;; *) clvmd_usage exit $OCF_ERR_UNIMPLEMENTED ;; esac exit $? debian/libdevmapper-dev.docs0000664000000000000000000000004211750751164013273 0ustar debian/changelog.Debian.devmapper debian/source/0000775000000000000000000000000012215554167010500 5ustar debian/source/format0000664000000000000000000000001411750751164011705 0ustar 3.0 (quilt) debian/lvm2.preinst0000664000000000000000000000036411750751164011470 0ustar #!/bin/sh set -e case "$1" in upgrade) if dpkg --compare-versions "$2" lt 2.02.88-1; then if [ -d /etc/lvm/cache ]; then rm -rf /etc/lvm/cache fi fi ;; esac #DEBHELPER# exit 0