1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

fix various issues

This commit is contained in:
Andres Salomon 2002-03-04 11:12:57 +00:00
parent 8c013da41f
commit 0706555513
8 changed files with 65 additions and 22 deletions

10
debian/changelog vendored
View File

@ -1,3 +1,13 @@
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 <dilinger@mp3revolution.net> Mon, 4 Mar 2002 04:51:26 -0500
lvm2 (0.95.02cvs20020220) unstable; urgency=low lvm2 (0.95.02cvs20020220) unstable; urgency=low
* Initial Release. * Initial Release.

5
debian/control vendored
View File

@ -1,5 +1,5 @@
Source: lvm2 Source: lvm2
Section: devel Section: admin
Priority: optional Priority: optional
Maintainer: Andres Salomon <dilinger@mp3revolution.net> Maintainer: Andres Salomon <dilinger@mp3revolution.net>
Build-Depends: debhelper (>> 3.0.0), libdevmapper-dev, libreadline4-dev Build-Depends: debhelper (>> 3.0.0), libdevmapper-dev, libreadline4-dev
@ -7,9 +7,10 @@ Standards-Version: 3.5.2
Package: lvm2 Package: lvm2
Architecture: any Architecture: any
Depends: libdevmapper Depends: libdevmapper0
Replaces: lvm10, lvm-common Replaces: lvm10, lvm-common
Provides: lvm-binaries Provides: lvm-binaries
Suggests: dmsetup
Description: The Linux Logical Volume Manager Description: The Linux Logical Volume Manager
This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM
supports enterprise level volume management of disk and disk subsystems supports enterprise level volume management of disk and disk subsystems

1
debian/dirs vendored
View File

@ -1,3 +1,4 @@
etc/lvm
usr/share/man/man5 usr/share/man/man5
usr/share/man/man8 usr/share/man/man8
sbin sbin

46
debian/init.d vendored
View File

@ -9,34 +9,50 @@ PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=lvm2 NAME=lvm2
DESC=LVM DESC=LVM
test -f $DAEMON || exit 0 test -x /sbin/vgchange || exit 0
modprobe dm-mod >/dev/null 2>&1
# Create necessary files in /dev for device-mapper
create_devfiles() {
DIR="/dev/device-mapper"
FILE="$DIR/control"
major=$(awk '$2 ~ /^misc$/ {print $1}' /proc/devices)
minor=$(awk "\$2 ~ /^$DM_NAME\$/ {print \$1}" /proc/misc)
if test ! -d $DIR; then
mkdir --mode=755 $DIR >/dev/null 2>&1
fi
if test ! -c $FILE -a ! -z "$minor"; then
mknod --mode=600 $FILE c $major $minor >/dev/null 2>&1
fi
}
case "$1" in case "$1" in
start) start)
echo -n "Initializing $DESC: " echo -n "Initializing $DESC: "
modprobe dm-mod >/dev/null 2>&1 create_devfiles
vgchange -a y 2>/dev/null vgchange -a y
# TODO: attempt to mount all lvm devices; mount -a?
# # Mount all LVM devices
# for vg in $( vgchange -a y 2>/dev/null | grep active | awk -F\" '{print $2}' ); do
# MTPT=$( grep $vg /etc/fstab | awk '{print $2}' )
# mount $MTPT
# done
echo "$NAME." echo "$NAME."
;; ;;
stop) stop)
echo -n "Shutting down $DESC: " echo -n "Shutting down $DESC: "
# TODO: attempt to umount all lvm devices; umount -a? # We don't really try all that hard to shut it down; far too many
vgchange -a n 2>/dev/null # things that can keep it from successfully shutting down.
rmmod dm-mod >/dev/null 2>&1 vgchange -a n
echo "$NAME." echo "$NAME."
;; ;;
restart|force-reload) restart|force-reload)
echo -n "Restarting $DESC: " echo -n "Restarting $DESC: "
# TODO: attempt to umount all lvm devices; umount -a? vgchange -a n
vgchange -a n 2>/dev/null
rmmod dm-mod >/dev/null 2>&1
sleep 1 sleep 1
modprobe dm-mod >/dev/null 2>&1 vgchange -a y
vgchange -a y 2>/dev/null
# TODO: attempt to mount all lvm devices; mount -a?
echo "$NAME." echo "$NAME."
;; ;;
*) *)

4
debian/postinst vendored
View File

@ -25,8 +25,8 @@ set -e
case "$1" in case "$1" in
configure) configure)
# update-rc.d lvm2 start 25 S . start 50 0 6 . >/dev/null update-rc.d lvm2 start 25 S . start 50 0 6 . >/dev/null
# /etc/init.d/lvm2 start /etc/init.d/lvm2 start
;; ;;
abort-upgrade|abort-remove|abort-deconfigure) abort-upgrade|abort-remove|abort-deconfigure)

2
debian/postrm vendored
View File

@ -20,7 +20,7 @@ set -e
case "$1" in case "$1" in
purge|remove) purge|remove)
# update-rc.d lvm2 remove >/dev/null update-rc.d lvm2 remove >/dev/null
;; ;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;; ;;

5
debian/rules vendored
View File

@ -78,6 +78,7 @@ install: build
# Add here commands to install the package into debian/lvm2. # Add here commands to install the package into debian/lvm2.
$(MAKE) install prefix=$(CURDIR)/debian/lvm2 $(MAKE) install prefix=$(CURDIR)/debian/lvm2
install -m 0644 doc/example.conf debian/lvm2/etc/lvm/lvm.conf
# Build architecture-independent files here. # Build architecture-independent files here.
@ -97,11 +98,11 @@ binary-arch: build install
# dh_installemacsen -a # dh_installemacsen -a
# dh_installpam -a # dh_installpam -a
# dh_installmime -a # dh_installmime -a
dh_installinit dh_installinit -n
dh_installcron dh_installcron
dh_installman dh_installman
dh_installinfo dh_installinfo
# dh_undocumented -a dh_undocumented
dh_installchangelogs dh_installchangelogs
dh_strip dh_strip
dh_link dh_link

14
debian/undocumented vendored Normal file
View File

@ -0,0 +1,14 @@
e2fsadm.8
lvmdiskscan.8
lvmsadc.8
lvmsar.8
lvresize.8
pvdata.8
pvmove.8
pvresize.8
version.8
vgcfgrestore.8
vgexport.8
vgimport.8
vgmknodes.8
vgsplit.8