Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70743
b: refs/heads/master
c: d7f3d29
h: refs/heads/master
i:
  70741: 01a5369
  70739: f28fa6f
  70735: c33e559
v: v3
  • Loading branch information
Iustin Pop authored and Linus Torvalds committed Oct 17, 2007
1 parent bd94fcd commit 8d97dbe
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 2b12ab6d33f413aabb623197eeecaad5c216e6ae
refs/heads/master: d7f3d291a0e1330f341fdf1128b2d12fff7932ee
7 changes: 7 additions & 0 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -2833,6 +2833,12 @@ sync_max_store(mddev_t *mddev, const char *buf, size_t len)
static struct md_sysfs_entry md_sync_max =
__ATTR(sync_speed_max, S_IRUGO|S_IWUSR, sync_max_show, sync_max_store);

static ssize_t
degraded_show(mddev_t *mddev, char *page)
{
return sprintf(page, "%d\n", mddev->degraded);
}
static struct md_sysfs_entry md_degraded = __ATTR_RO(degraded);

static ssize_t
sync_speed_show(mddev_t *mddev, char *page)
Expand Down Expand Up @@ -2976,6 +2982,7 @@ static struct attribute *md_redundancy_attrs[] = {
&md_suspend_lo.attr,
&md_suspend_hi.attr,
&md_bitmap.attr,
&md_degraded.attr,
NULL,
};
static struct attribute_group md_redundancy_group = {
Expand Down

0 comments on commit 8d97dbe

Please sign in to comment.