device-mapper ./WHATS_NEW ./configure ./config ...
Subsystems (2)
CVSROOT: /cvs/dm
Module name: device-mapper
Changes by: [email protected] 2006-10-12 15:42:25
Modified files:
. : WHATS_NEW configure configure.in dmsetup : dmsetup.c include : configure.h.in kernel/ioctl : dm-ioctl.h lib : .exported_symbols libdevmapper.h lib/ioctl : libdm-iface.c libdm-targets.h man : dmsetup.8
Log message:
Add suspend noflush support.
Add basic dmsetup loop support.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/WHATS_NEW.diff?cvsroot=dm&r1=1.124&r2=1.125
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/configure.diff?cvsroot=dm&r1=1.37&r2=1.38
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/configure.in.diff?cvsroot=dm&r1=1.38&r2=1.39
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/dmsetup/dmsetup.c.diff?cvsroot=dm&r1=1.71&r2=1.72
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/include/configure.h.in.diff?cvsroot=dm&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/kernel/ioctl/dm-ioctl.h.diff?cvsroot=dm&r1=1.43&r2=1.44
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/.exported_symbols.diff?cvsroot=dm&r1=1.22&r2=1.23
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/libdevmapper.h.diff?cvsroot=dm&r1=1.58&r2=1.59
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/ioctl/libdm-iface.c.diff?cvsroot=dm&r1=1.37&r2=1.38
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/lib/ioctl/libdm-targets.h.diff?cvsroot=dm&r1=1.18&r2=1.19
http://sourceware.org/cgi-bin/cvsweb.cgi/device-mapper/man/dmsetup.8.diff?cvsroot=dm&r1=1.14&r2=1.15
WHATS_NEW +2 -0
@@ -1,5 +1,7 @@ Version 1.02.11 - ============================= + Add suspend noflush support. + Add basic dmsetup loop support. Version 1.02.10 - 19 Sep 2006 =============================
configure +77 -1
90 lines not on this page · raw message
configure.in +6 -1
@@ -71,7 +71,7 @@ AC_CHECK_HEADERS(ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h sys/types.h unistd.h,,AC_MSG_ERROR(bailing out)) -AC_CHECK_HEADERS(termios.h) +AC_CHECK_HEADERS(termios.h sys/statvfs.h) ################################################################################ dnl -- Checks for typedefs, structures, and compiler characteristics. AC_C_CONST
@@ -210,6 +210,11 @@ AC_CHECK_LIB(c, getline, AC_DEFINE([HAVE_GETLINE], 1, [Define to 1 if getline is available.])) ################################################################################ +dnl -- canonicalize_file_name included in recent libc + +AC_CHECK_LIB(c, canonicalize_file_name, AC_DEFINE([HAVE_CANONICALIZE_FILE_NAME], 1, [Define to 1 if canonicalize_file_name is available.])) + +################################################################################ dnl -- Disable selinux AC_MSG_CHECKING(whether to enable selinux support) AC_ARG_ENABLE(selinux, [ --disable-selinux Disable selinux support],
dmsetup/dmsetup.c +264 -14
392 lines not on this page · raw message
include/configure.h.in +6 -0
@@ -3,6 +3,9 @@ /* Define to 1 if the `closedir' function returns void instead of `int'. */ #undef CLOSEDIR_VOID +/* Define to 1 if canonicalize_file_name is available. */ +#undef HAVE_CANONICALIZE_FILE_NAME + /* Define to 1 if you have the <ctype.h> header file. */ #undef HAVE_CTYPE_H
@@ -113,6 +116,9 @@ /* Define to 1 if you have the <sys/param.h> header file. */ #undef HAVE_SYS_PARAM_H +/* Define to 1 if you have the <sys/statvfs.h> header file. */ +#undef HAVE_SYS_STATVFS_H + /* Define to 1 if you have the <sys/stat.h> header file. */ #undef HAVE_SYS_STAT_H
kernel/ioctl/dm-ioctl.h +7 -2
@@ -287,9 +287,9 @@#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)#define DM_VERSION_MAJOR 4 -#define DM_VERSION_MINOR 8 +#define DM_VERSION_MINOR 11#define DM_VERSION_PATCHLEVEL 0 -#define DM_VERSION_EXTRA "-ioctl (2006-06-08)" +#define DM_VERSION_EXTRA "-ioctl (2006-10-12)"/* Status bits */ #define DM_READONLY_FLAG (1 << 0)/* In/Out */
@@ -325,4 +325,9 @@*/ #define DM_SKIP_LOCKFS_FLAG (1 << 10)/* In */ +/* +* Set this to suspend without flushing queued ios. +*/ +#define DM_NOFLUSH_FLAG (1 << 11)/* In */ +#endif /* _LINUX_DM_IOCTL_H */
lib/.exported_symbols +1 -0
@@ -28,6 +28,7 @@ dm_task_set_mode dm_task_suppress_identical_reload dm_task_add_target +dm_task_no_flush dm_task_no_open_count dm_task_skip_lockfs dm_task_update_nodes
lib/libdevmapper.h +1 -0
@@ -151,6 +151,7 @@int dm_task_set_geometry (struct dm_task *dmt,const char *cylinders,const char *heads,const char *sectors,const char *start);int dm_task_set_message (struct dm_task *dmt,const char *message);int dm_task_set_sector (struct dm_task *dmt,uint64_t sector); +int dm_task_no_flush (struct dm_task *dmt);int dm_task_no_open_count (struct dm_task *dmt);int dm_task_skip_lockfs (struct dm_task *dmt);int dm_task_suppress_identical_reload (struct dm_task *dmt);
lib/ioctl/libdm-iface.c +9 -0
@@ -1026,6 +1026,13 @@return 1 ; } +int dm_task_no_flush (struct dm_task *dmt) +{ + dmt->noflush =1 ; + +return 1 ; +} +int dm_task_no_open_count (struct dm_task *dmt) { dmt->no_open_count =1 ;
@@ -1270,6 +1277,8 @@if (dmt->type ==DM_DEVICE_SUSPEND ) dmi->flags |=DM_SUSPEND_FLAG ; +if (dmt->noflush) + dmi->flags |=DM_NOFLUSH_FLAG ;if (dmt->read_only) dmi->flags |=DM_READONLY_FLAG ;if (dmt->skip_lockfs)
lib/ioctl/libdm-targets.h +1 -0
@@ -52,6 +52,7 @@char *message;char *geometry;uint64_t sector; +int noflush;int no_open_count;int skip_lockfs;int suppress_identical_reload;
man/dmsetup.8 +5 -2
@@ -13,7 +13,7 @@ .I [-f|--force] .br .B dmsetup suspend -.I [--nolockfs] device_name +.I [--nolockfs] [--noflush] device_name .br .B dmsetup resume .I device_name
@@ -213,7 +213,7 @@ With --target, only information relating to the specified target type is displayed. .IP \fBsuspend -.I [--nolockfs] +.I [--nolockfs] [--noflush] .I device_name .br Suspends a device. Any I/O that has already been mapped by the device
@@ -221,6 +221,9 @@ device will be postponed for as long as the device is suspended. If there's a filesystem on the device which supports the operation, an attempt will be made to sync it first unless --nolockfs is specified. +Some targets such as recent (October 2006) versions of multipath may support +the --noflush option. This lets outstanding I/O that has not yet reached the +device to remain unflushed. .IP \fBtable .I [--target target_type] .I [device_name]