Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dm be consistent and define secsize here as well (th...
details: https://anonhg.NetBSD.org/src/rev/77debaced95f
branches: trunk
changeset: 768799:77debaced95f
user: ahoka <ahoka%NetBSD.org@localhost>
date: Sat Aug 27 17:09:09 2011 +0000
description:
be consistent and define secsize here as well (though this seems unused?)
some white' from emacs
diffstat:
sys/dev/dm/dm_target_stripe.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (44 lines):
diff -r 07d48b5b0e8a -r 77debaced95f sys/dev/dm/dm_target_stripe.c
--- a/sys/dev/dm/dm_target_stripe.c Sat Aug 27 17:07:49 2011 +0000
+++ b/sys/dev/dm/dm_target_stripe.c Sat Aug 27 17:09:09 2011 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: dm_target_stripe.c,v 1.14 2011/06/02 17:49:40 haad Exp $*/
+/*$NetBSD: dm_target_stripe.c,v 1.15 2011/08/27 17:09:09 ahoka Exp $*/
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -81,6 +81,7 @@
dmt->deps = &dm_target_stripe_deps;
dmt->destroy = &dm_target_stripe_destroy;
dmt->upcall = &dm_target_stripe_upcall;
+ dmt->secsize = &dm_target_stripe_secsize;
r = dm_target_insert(dmt);
@@ -156,7 +157,7 @@
tlc = kmem_alloc(sizeof(*tlc), KM_NOSLEEP);
if ((tlc->pdev = dm_pdev_insert(argv[strpi])) == NULL)
- return ENOENT;
+ return ENOENT;
tlc->offset = atoi(argv[strpi+1]);
/* Insert striping device to linked list. */
@@ -281,7 +282,7 @@
&cmd, FREAD|FWRITE, kauth_cred_get())) != 0)
return err;
}
-
+
return err;
}
@@ -344,7 +345,7 @@
}
/*
* Compute physical block size
- * For a stripe target we chose the maximum sector size of all
+ * For a stripe target we chose the maximum sector size of all
* stripe devices. For the supported power-of-2 sizes this is equivalent
* to the least common multiple.
*/
Home |
Main Index |
Thread Index |
Old Index