mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
pre-release
This commit is contained in:
parent
a6afae2356
commit
3c08ff94d4
13
WHATS_NEW_DM
13
WHATS_NEW_DM
@ -1,13 +1,12 @@
|
|||||||
Version 1.02.23 -
|
Version 1.02.23 - 5th December 2007
|
||||||
==================================
|
===================================
|
||||||
Update dm-ioctl.h after removal of compat code.
|
Update dm-ioctl.h after removal of compat code.
|
||||||
Add --readahead to dmsetup.
|
Add readahead support to libdevmapper and dmsetup.
|
||||||
Add external read_ahead library functions and DM_READ_AHEAD_* definitions.
|
|
||||||
Fix double free in a libdevmapper-event error path.
|
Fix double free in a libdevmapper-event error path.
|
||||||
Fix configure --with-dmeventd-path substitution.
|
Fix configure --with-dmeventd-path substitution.
|
||||||
Allow $DM_DEV_DIR envvar to override default of "/dev".
|
Allow a DM_DEV_DIR environment variable to override /dev.
|
||||||
Create e.g., libdevmapper.so.1.02, in build dir alongside the .so file.
|
Create a libdevmapper.so.$LIB_VERSION symlink within the build tree.
|
||||||
Avoid static link failure with some SELinux libraries.
|
Avoid static link failure with some SELinux libraries that require libpthread.
|
||||||
Remove obsolete dmfs code from tree and update INSTALL.
|
Remove obsolete dmfs code from tree and update INSTALL.
|
||||||
|
|
||||||
Version 1.02.22 - 21st August 2007
|
Version 1.02.22 - 21st August 2007
|
||||||
|
@ -353,7 +353,7 @@ for creating devices with holes in them.
|
|||||||
.TP
|
.TP
|
||||||
\fBDM_DEV_DIR\fP
|
\fBDM_DEV_DIR\fP
|
||||||
The device directory name.
|
The device directory name.
|
||||||
Defaults to "/dev" and must be an absolute name.
|
Defaults to "/dev" and must be an absolute path.
|
||||||
|
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
Original version: Joe Thornber (thornber@sistina.com)
|
Original version: Joe Thornber (thornber@sistina.com)
|
||||||
|
@ -2194,8 +2194,8 @@ static char *parse_loop_device_name(const char *dev, const char *dev_dir)
|
|||||||
|
|
||||||
/* If dev_dir does not end in a slash, ensure that the
|
/* If dev_dir does not end in a slash, ensure that the
|
||||||
following byte in the device string is "/". */
|
following byte in the device string is "/". */
|
||||||
if (dev_dir[strlen(dev_dir) - 1] != '/'
|
if (dev_dir[strlen(dev_dir) - 1] != '/' &&
|
||||||
&& device[strlen(dev_dir)] != '/')
|
device[strlen(dev_dir)] != '/')
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
strncpy(buf, strrchr(device, '/') + 1, (size_t) PATH_MAX);
|
strncpy(buf, strrchr(device, '/') + 1, (size_t) PATH_MAX);
|
||||||
@ -2611,12 +2611,11 @@ int main(int argc, char **argv)
|
|||||||
dev_dir = getenv ("DM_DEV_DIR");
|
dev_dir = getenv ("DM_DEV_DIR");
|
||||||
if (dev_dir && *dev_dir) {
|
if (dev_dir && *dev_dir) {
|
||||||
if (!dm_set_dev_dir(dev_dir)) {
|
if (!dm_set_dev_dir(dev_dir)) {
|
||||||
fprintf(stderr, "Invalid DM_DEV_DIR envvar value.\n");
|
fprintf(stderr, "Invalid DM_DEV_DIR environment variable value.\n");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
} else {
|
} else
|
||||||
dev_dir = DEFAULT_DM_DEV_DIR;
|
dev_dir = DEFAULT_DM_DEV_DIR;
|
||||||
}
|
|
||||||
|
|
||||||
if (!_process_switches(&argc, &argv, dev_dir)) {
|
if (!_process_switches(&argc, &argv, dev_dir)) {
|
||||||
fprintf(stderr, "Couldn't process command line.\n");
|
fprintf(stderr, "Couldn't process command line.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user