summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-12-14 20:13:43 +1100
committerNeil Brown <neilb@suse.de>2007-12-14 20:13:43 +1100
commitaba69144fd44fc261c943b0cec540751cfcd29bd (patch)
tree56aebc333f4ebf597efd556381470665ddc14c14 /super0.c
parent08e43379e5e01c8386e7f68f760e11cbe1e42210 (diff)
downloadmdadm-aba69144fd44fc261c943b0cec540751cfcd29bd.tar.gz
mdadm-aba69144fd44fc261c943b0cec540751cfcd29bd.tar.xz
mdadm-aba69144fd44fc261c943b0cec540751cfcd29bd.zip
Remove spaces/tabs from ends of lines.
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/super0.c b/super0.c
index 0396c2c..2a2938d 100644
--- a/super0.c
+++ b/super0.c
@@ -38,7 +38,7 @@
* - initialising a new superblock
* - printing the superblock for --examine
* - printing part of the superblock for --detail
- * .. other stuff
+ * .. other stuff
*/
@@ -56,7 +56,7 @@ static unsigned long calc_sb0_csum(mdp_super_t *super)
void super0_swap_endian(struct mdp_superblock_s *sb)
{
/* as super0 superblocks are host-endian, it is sometimes
- * useful to be able to swap the endianness
+ * useful to be able to swap the endianness
* as (almost) everything is u32's we byte-swap every 4byte
* number.
* We then also have to swap the events_hi and events_lo
@@ -403,14 +403,14 @@ static int update_super0(struct mdinfo *info, void *sbv, char *update,
if (strcmp(update, "summaries") == 0) {
int i;
/* set nr_disks, active_disks, working_disks,
- * failed_disks, spare_disks based on disks[]
+ * failed_disks, spare_disks based on disks[]
* array in superblock.
* Also make sure extra slots aren't 'failed'
*/
sb->nr_disks = sb->active_disks =
sb->working_disks = sb->failed_disks =
sb->spare_disks = 0;
- for (i=0; i < MD_SB_DISKS ; i++)
+ for (i=0; i < MD_SB_DISKS ; i++)
if (sb->disks[i].major ||
sb->disks[i].minor) {
int state = sb->disks[i].state;
@@ -727,7 +727,7 @@ static int load_super0(struct supertype *st, int fd, void **sbp, char *devname)
mdp_super_t *super;
int uuid[4];
struct bitmap_super_s *bsb;
-
+
if (!get_dev_size(fd, devname, &dsize))
return 1;
@@ -910,7 +910,7 @@ int write_bitmap0(struct supertype *st, int fd, void *sbv)
unsigned long long dsize;
unsigned long long offset;
mdp_super_t *sb = sbv;
-
+
int rv = 0;
int towrite, n;
@@ -938,7 +938,7 @@ int write_bitmap0(struct supertype *st, int fd, void *sbv)
memset(buf, 0xff, sizeof(buf));
while (towrite > 0) {
n = towrite;
- if (n > sizeof(buf))
+ if (n > sizeof(buf))
n = sizeof(buf);
n = write(fd, buf, n);
if (n > 0)