-1.00.18-cvs (2004-06-20)
+1.00.19-cvs (2004-07-01)
+Version 1.00.19 -
+=============================
+ Fix device number handling for 2.6 kernels.
+
Version 1.00.18 - 20 Jun 2004
=============================
Fix a uuid free in libdm-iface.
#endif
#ifdef linux
-# include <linux/kdev_t.h>
+# include "kdev_t.h"
#else
# define MAJOR(x) major((x))
# define MINOR(x) minor((x))
--- /dev/null
+/*
+ * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
+ *
+ * This file is part of the device-mapper userspace tools.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License v.2.1.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _LVM_KDEV_H
+#define _LVM_KDEV_H
+
+#define MAJOR(dev) ((dev & 0xfff00) >> 8)
+#define MINOR(dev) ((dev & 0xff) | ((dev >> 12) & 0xfff00))
+#define MKDEV(ma,mi) ((mi & 0xff) | (ma << 8) | ((mi & ~0xff) << 12))
+
+#endif
#ifndef _LINUX_LIBDM_COMPAT_H
#define _LINUX_LIBDM_COMPAT_H
+#include "kdev_t.h"
#include <inttypes.h>
#include <linux/dm-ioctl.h>
-#include <linux/kdev_t.h>
#include <sys/ioctl.h>
struct dm_task;
#include <limits.h>
#ifdef linux
+# include "kdev_t.h"
# include <linux/limits.h>
-# include <linux/kdev_t.h>
# include <linux/dm-ioctl.h>
#else
# define MAJOR(x) major((x))
#include "libdm-common.h"
#include "list.h"
#include "log.h"
+#include "kdev_t.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <linux/dm-ioctl.h>
-#include <linux/kdev_t.h>
#ifdef HAVE_SELINUX
# include <selinux/selinux.h>