Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154264
b: refs/heads/master
c: 486d220
h: refs/heads/master
v: v3
  • Loading branch information
Peter Rajnoha authored and Alasdair G Kergon committed Jun 22, 2009
1 parent c38549a commit 542547f
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 1b6da754594e6e26c24e6fbc1a34f9c03e4617a3
refs/heads/master: 486d220fe4909b5745c4faa67faddd30a707abe2
9 changes: 9 additions & 0 deletions trunk/drivers/md/dm-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,21 @@ static ssize_t dm_attr_uuid_show(struct mapped_device *md, char *buf)
return strlen(buf);
}

static ssize_t dm_attr_suspended_show(struct mapped_device *md, char *buf)
{
sprintf(buf, "%d\n", dm_suspended(md));

return strlen(buf);
}

static DM_ATTR_RO(name);
static DM_ATTR_RO(uuid);
static DM_ATTR_RO(suspended);

static struct attribute *dm_attrs[] = {
&dm_attr_name.attr,
&dm_attr_uuid.attr,
&dm_attr_suspended.attr,
NULL,
};

Expand Down

0 comments on commit 542547f

Please sign in to comment.