summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_ioctl.c
diff options
context:
space:
mode:
authorhaad <haad@NetBSD.org>2009-01-11 11:54:52 +0000
committerhaad <haad@NetBSD.org>2009-01-11 11:54:52 +0000
commita74b9dc067d78a499cb1c84648a7d8affd9ee356 (patch)
treed0fb998495d27eb62e77d34da38b2d63ab1340c4 /sys/dev/dm/dm_ioctl.c
parentae10a6c772874fd90bd5922ccdce6a031ca2deb5 (diff)
Use 64bit long minor nuber in dm_dev structure.
Diffstat (limited to 'sys/dev/dm/dm_ioctl.c')
-rw-r--r--sys/dev/dm/dm_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dm/dm_ioctl.c b/sys/dev/dm/dm_ioctl.c
index f2f138b91e9..b07dcee6b6f 100644
--- a/sys/dev/dm/dm_ioctl.c
+++ b/sys/dev/dm/dm_ioctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.4 2008/12/21 00:53:27 haad Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.5 2009/01/11 11:54:52 haad Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
#include "netbsd-dm.h"
#include "dm.h"
-static uint32_t sc_minor_num;
+static uint64_t sc_minor_num;
#define DM_REMOVE_FLAG(flag, name) do { \
prop_dictionary_get_uint32(dm_dict,DM_IOCTL_FLAGS,&flag); \
@@ -225,7 +225,7 @@ dm_dev_create_ioctl(prop_dictionary_t dm_dict)
if (name)
strlcpy(dmv->name, name, DM_NAME_LEN);
- dmv->minor = atomic_inc_32_nv(&sc_minor_num);
+ dmv->minor = atomic_inc_64_nv(&sc_minor_num);
dmv->flags = 0; /* device flags are set when needed */
dmv->ref_cnt = 0;