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 (parent:
143b4e9
)
shutdown: drop last referral to mp->read_only
author
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Oct 2010 18:47:26 +0000
(20:47 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 7 Oct 2010 18:47:26 +0000
(20:47 +0200)
src/umount.c
patch
|
blob
|
history
diff --git
a/src/umount.c
b/src/umount.c
index cdc42ed8f1cac80894a4bed2009f9ade9f508871..468eb715d65bb142bc81cbb3fae07dfb8247fa0e 100644
(file)
--- a/
src/umount.c
+++ b/
src/umount.c
@@
-300,9
+300,6
@@
static int mount_points_list_remount_read_only(MountPoint **mount_point_list_hea
int failed = 0;
LIST_FOREACH_SAFE(mount_point, mp, mp_next, *mount_point_list_head) {
int failed = 0;
LIST_FOREACH_SAFE(mount_point, mp, mp_next, *mount_point_list_head) {
- if (mp->read_only)
- continue;
-
/* Trying to remount read-only */
if (mount(NULL, mp->path, NULL, MS_MGC_VAL|MS_REMOUNT|MS_RDONLY, NULL) == 0)
mount_point_remove_and_free(mp, mount_point_list_head);
/* Trying to remount read-only */
if (mount(NULL, mp->path, NULL, MS_MGC_VAL|MS_REMOUNT|MS_RDONLY, NULL) == 0)
mount_point_remove_and_free(mp, mount_point_list_head);