From 14772580cd07ca9ffd41d8e8992814984bc34194 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 9 Nov 2007 16:52:36 +0000 Subject: [PATCH] Define DM_READ_AHEAD_AUTO and DM_READ_AHEAD_NONE. --- WHATS_NEW_DM | 1 + libdm/libdevmapper.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 4069bf10c..4062baf5d 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.23 - ================================== + Define DM_READ_AHEAD_AUTO and DM_READ_AHEAD_NONE. Fix configure --with-dmeventd-path substitution. Allow $DM_DEV_DIR envvar to override default of "/dev". Create e.g., libdevmapper.so.1.02, in build dir alongside the .so file. diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h index a00345b49..3b79f1767 100644 --- a/libdm/libdevmapper.h +++ b/libdm/libdevmapper.h @@ -141,6 +141,9 @@ struct dm_deps *dm_task_get_deps(struct dm_task *dmt); struct dm_names *dm_task_get_names(struct dm_task *dmt); struct dm_versions *dm_task_get_versions(struct dm_task *dmt); +#define DM_READ_AHEAD_AUTO UINT32_MAX /* Use kernel default readahead */ +#define DM_READ_AHEAD_NONE 0 /* Disable readahead */ + int dm_task_set_ro(struct dm_task *dmt); int dm_task_set_newname(struct dm_task *dmt, const char *newname); int dm_task_set_minor(struct dm_task *dmt, int minor);