1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-03 13:47:04 +03:00

shutdown: drop last referral to mp->read_only

This commit is contained in:
Lennart Poettering 2010-10-07 20:47:26 +02:00
parent 143b4e9b8d
commit 83d8b7c179

View File

@ -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) {
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);