Don't show message when unmounting temporary mount points

This commit is contained in:
Tony George 2022-10-15 12:46:45 +05:30 committed by Michael Webster
parent 22216d6acb
commit 12791a98ec

View File

@ -4227,7 +4227,7 @@ public class Main : GLib.Object{
if (mnt.mount_point == mdir2){
log_msg("\nFound stale mount for device '%s' at path '%s'".printf(dev.device, mdir2));
log_debug("\nFound stale mount for device '%s' at path '%s'".printf(dev.device, mdir2));
string cmd = "umount '%s'".printf(escape_single_quote(mdir2));
int retval = exec_sync(cmd);
@ -4236,12 +4236,12 @@ public class Main : GLib.Object{
int retval2 = exec_sync(cmd2);
if (retval2 != 0){
log_error("Failed to unmount");
log_msg("Ret=%d".printf(retval));
log_debug("E: Failed to unmount");
log_debug("Ret=%d".printf(retval));
//ignore
}
else{
log_msg("Unmounted successfully");
log_debug("Unmounted successfully");
}
}
}