aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vinum/vinumutil.c
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>1999-01-29 01:17:54 +0000
committerGreg Lehey <grog@FreeBSD.org>1999-01-29 01:17:54 +0000
commit7f1050341ca5d23c8a3002835debc88bafe707ab (patch)
tree6a35193c89d72529ec1c5f1470f174758cfb2af0 /sys/dev/vinum/vinumutil.c
parent07dd15c173fe27935b7b14181ab8dbe353ca9a7c (diff)
downloadsrc-7f1050341ca5d23c8a3002835debc88bafe707ab.tar.gz
src-7f1050341ca5d23c8a3002835debc88bafe707ab.zip
Change multiline comments to start with a lone /* and end with a */,
apparently in accordance with style(9). Complained-about-by: bde
Notes
Notes: svn path=/head/; revision=43369
Diffstat (limited to 'sys/dev/vinum/vinumutil.c')
-rw-r--r--sys/dev/vinum/vinumutil.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/sys/dev/vinum/vinumutil.c b/sys/dev/vinum/vinumutil.c
index 22d8be8431dd..2bc35532908a 100644
--- a/sys/dev/vinum/vinumutil.c
+++ b/sys/dev/vinum/vinumutil.c
@@ -122,8 +122,10 @@ sd_state(enum sdstate state)
}
/* Now convert in the other direction */
-/* These are currently used only internally,
- * so we don't do too much error checking */
+/*
+ * These are currently used only internally,
+ * so we don't do too much error checking
+ */
enum drivestate
DriveState(char *text)
{
@@ -164,7 +166,8 @@ VolState(char *text)
return -1;
}
-/* Take a number with an optional scale factor and convert
+/*
+ * Take a number with an optional scale factor and convert
* it to a number of bytes.
*
* The scale factors are:
@@ -216,8 +219,10 @@ sizespec(char *spec)
return -1;
}
-/* Extract the volume number from a device number.
- * Perform no checking. */
+/*
+ * Extract the volume number from a device number.
+ * Perform no checking.
+ */
int
Volno(dev_t dev)
{
@@ -225,9 +230,11 @@ Volno(dev_t dev)
return (x & MASK(VINUM_VOL_WIDTH)) >> VINUM_VOL_SHIFT;
}
-/* Extract a plex number from a device number.
+/*
+ * Extract a plex number from a device number.
* Don't check the major number, but check the
- * type. Return -1 for invalid types. */
+ * type. Return -1 for invalid types.
+ */
int
Plexno(dev_t dev)
{
@@ -253,9 +260,11 @@ Plexno(dev_t dev)
return 0; /* compiler paranoia */
}
-/* Extract a subdisk number from a device number.
+/*
+ * Extract a subdisk number from a device number.
* Don't check the major number, but check the
- * type. Return -1 for invalid types. */
+ * type. Return -1 for invalid types.
+ */
int
Sdno(dev_t dev)
{
@@ -274,7 +283,8 @@ Sdno(dev_t dev)
case VINUM_RAWSD_TYPE:
return ((x & MASK(VINUM_VOL_WIDTH)) >> VINUM_VOL_SHIFT) /* low order 8 bits */
- |((x >> VINUM_RAWPLEX_SHIFT) & (MASK(VINUM_RAWPLEX_WIDTH) << (VINUM_VOL_SHIFT + VINUM_VOL_WIDTH))); /* upper 12 bits */
+ |((x >> VINUM_RAWPLEX_SHIFT) & (MASK(VINUM_RAWPLEX_WIDTH)
+ << (VINUM_VOL_SHIFT + VINUM_VOL_WIDTH))); /* upper 12 bits */
}
return -1; /* compiler paranoia */
}