chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2569a5c
)
umount: fix check for DM changed
author
Michal Schmidt
<mschmidt@redhat.com>
Fri, 7 Dec 2012 16:34:21 +0000
(17:34 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Fri, 7 Dec 2012 16:34:21 +0000
(17:34 +0100)
delete_dm() returns 0 on success. The check for "r > 0" was likely
a copy&paste error from the loopback code where "r > 0" makes sense.
src/core/umount.c
patch
|
blob
|
history
diff --git
a/src/core/umount.c
b/src/core/umount.c
index f6c520eaa855d1a9e4dd167df9780b502a562694..877680764d658a8eb62b5c608c28e3efd7edad99 100644
(file)
--- a/
src/core/umount.c
+++ b/
src/core/umount.c
@@
-536,7
+536,7
@@
static int dm_points_list_detach(MountPoint **head, bool *changed) {
if ((r = delete_dm(m->devnum)) >= 0) {
- if (
r > 0 &&
changed)
+ if (changed)
*changed = true;
mount_point_free(head, m);