~xdavidwu/saf-cephfs

7eb7507da84e9c9405f4b8149e61378594c205aa — xdavidwu 2 years ago 1a7d043
DocumentsProvider: wrap remaining mount() to throw IOE
1 files changed, 7 insertions(+), 1 deletions(-)

M src/main/java/org/safcephfs/CephFSDocumentsProvider.java
M src/main/java/org/safcephfs/CephFSDocumentsProvider.java => src/main/java/org/safcephfs/CephFSDocumentsProvider.java +7 -1
@@ 136,7 136,13 @@ public class CephFSDocumentsProvider extends DocumentsProvider {
						Log.e(APP_NAME, "Mount died, " + r + "attempts remaining, retrying");
						cm.unmount();
						try {
							cm.mount(path);
							new CephOperation<Void>() {
								@Override
								public Void execute() throws IOException {
									cm.mount(path);
									return null;
								}
							}.execute();
						} catch (IOException e2) {
							Message msg = lthread.handler.obtainMessage();
							msg.obj = APP_NAME + ": Unable to remount root: " + e2.toString();