diff options
Diffstat (limited to 'umount.c')
-rw-r--r-- | umount.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -79,7 +79,7 @@ void mtab_read(void) | |||
79 | return; | 79 | return; |
80 | 80 | ||
81 | if ((fp = setmntent(mtab_file, "r")) == NULL) { | 81 | if ((fp = setmntent(mtab_file, "r")) == NULL) { |
82 | errorMsg("Cannot open %s\n", mtab_file); | 82 | error_msg("Cannot open %s\n", mtab_file); |
83 | return; | 83 | return; |
84 | } | 84 | } |
85 | while ((e = getmntent(fp))) { | 85 | while ((e = getmntent(fp))) { |
@@ -179,7 +179,7 @@ static int do_umount(const char *name, int useMtab) | |||
179 | if (status != 0 && doForce == TRUE) { | 179 | if (status != 0 && doForce == TRUE) { |
180 | status = umount2(blockDevice, MNT_FORCE); | 180 | status = umount2(blockDevice, MNT_FORCE); |
181 | if (status != 0) { | 181 | if (status != 0) { |
182 | fatalError("forced umount of %s failed!\n", blockDevice); | 182 | error_msg_and_die("forced umount of %s failed!\n", blockDevice); |
183 | } | 183 | } |
184 | } | 184 | } |
185 | #endif | 185 | #endif |
@@ -187,9 +187,9 @@ static int do_umount(const char *name, int useMtab) | |||
187 | status = mount(blockDevice, name, NULL, | 187 | status = mount(blockDevice, name, NULL, |
188 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); | 188 | MS_MGC_VAL | MS_REMOUNT | MS_RDONLY, NULL); |
189 | if (status == 0) { | 189 | if (status == 0) { |
190 | errorMsg("%s busy - remounted read-only\n", blockDevice); | 190 | error_msg("%s busy - remounted read-only\n", blockDevice); |
191 | } else { | 191 | } else { |
192 | errorMsg("Cannot remount %s read-only\n", blockDevice); | 192 | error_msg("Cannot remount %s read-only\n", blockDevice); |
193 | } | 193 | } |
194 | } | 194 | } |
195 | if (status == 0) { | 195 | if (status == 0) { |