projects
/
platform
/
upstream
/
udisks2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88de4a
)
Strip trailing white-space from md/sync_action sysfs attr
author
David Zeuthen
<zeuthen@gmail.com>
Thu, 13 Sep 2012 15:52:05 +0000
(11:52 -0400)
committer
David Zeuthen
<zeuthen@gmail.com>
Thu, 13 Sep 2012 15:52:05 +0000
(11:52 -0400)
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
src/udiskslinuxmdraid.c
patch
|
blob
|
history
diff --git
a/src/udiskslinuxmdraid.c
b/src/udiskslinuxmdraid.c
index
6169205
..
85ace3f
100644
(file)
--- a/
src/udiskslinuxmdraid.c
+++ b/
src/udiskslinuxmdraid.c
@@
-215,6
+215,7
@@
udisks_linux_mdraid_update (UDisksLinuxMDRaid *mdraid,
/* Can't use GUdevDevice methods as they cache the result and these variables vary */
degraded = read_sysfs_attr_as_int (raid_device, "md/degraded");
sync_action = read_sysfs_attr (raid_device, "md/sync_action");
+ g_strstrip (sync_action);
}
udisks_mdraid_set_degraded (iface, degraded);
udisks_mdraid_set_sync_action (iface, sync_action);