Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139947
b: refs/heads/master
c: d1a7c50
h: refs/heads/master
i:
  139945: e362218
  139943: d3afa79
v: v3
  • Loading branch information
NeilBrown committed Mar 31, 2009
1 parent 12ec91e commit 0ebe2a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 88ce4930e2b80378d45506ce2c3bb5820e156e85
refs/heads/master: d1a7c50369835f9ecbd7752016cd9302ecfae678
4 changes: 4 additions & 0 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -2888,6 +2888,8 @@ __ATTR(chunk_size, S_IRUGO|S_IWUSR, chunk_size_show, chunk_size_store);
static ssize_t
resync_start_show(mddev_t *mddev, char *page)
{
if (mddev->recovery_cp == MaxSector)
return sprintf(page, "none\n");
return sprintf(page, "%llu\n", (unsigned long long)mddev->recovery_cp);
}

Expand Down Expand Up @@ -3469,6 +3471,8 @@ static ssize_t
sync_speed_show(mddev_t *mddev, char *page)
{
unsigned long resync, dt, db;
if (mddev->curr_resync == 0)
return sprintf(page, "none\n");
resync = mddev->curr_mark_cnt - atomic_read(&mddev->recovery_active);
dt = (jiffies - mddev->resync_mark) / HZ;
if (!dt) dt++;
Expand Down

0 comments on commit 0ebe2a2

Please sign in to comment.