Currently, if the read-only mount fails during device discovery, we
retry without the '-o ro' option. This was originally due to the
read-only mount failing when a device was already mounted elsewhere.
Since we check for exsiting mounts now, we can drop this retry.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
return 0;
}
- /* Retry mount without ro option. */
- rc = process_run_simple(dev, pb_system_apps.mount,
- dev->device_path, dev->mount_path, NULL);
-
- if (!rc) {
- dev->mounted = true;
- dev->mounted_rw = true;
- dev->unmount = true;
- return 0;
- }
-
pb_rmdir_recursive(mount_base(), dev->mount_path);
err_free:
talloc_free(dev->mount_path);