Module Name:    src
Committed By:   ahoka
Date:           Sat Aug 27 17:09:10 UTC 2011

Modified Files:
        src/sys/dev/dm: dm_target_stripe.c

Log Message:
be consistent and define secsize here as well (though this seems unused?)
some white' from emacs


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/dm/dm_target_stripe.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/dm/dm_target_stripe.c
diff -u src/sys/dev/dm/dm_target_stripe.c:1.14 src/sys/dev/dm/dm_target_stripe.c:1.15
--- src/sys/dev/dm/dm_target_stripe.c:1.14	Thu Jun  2 17:49:40 2011
+++ src/sys/dev/dm/dm_target_stripe.c	Sat Aug 27 17:09:09 2011
@@ -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.
  */

Reply via email to