Skip to content

Commit aea9fda

Browse files
Adam BarthCQ Bot
authored andcommitted
[storage][vfs] Prepare for fuchsia.io transitions
These match statements are exhaustive, which break when we add @transitional methods to fuchsia.io. This CL adds default cases to these matches so that we add and remove @transitional methods. Bug: 77623 Change-Id: I00ffa3334beb581791e8612bc5900256555e64e3 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/574555 API-Review: Adam Barth <abarth@google.com> Commit-Queue: Adam Barth <abarth@google.com> Reviewed-by: Tamir Duberstein <tamird@google.com> Reviewed-by: Yifei Teng <yifeit@google.com>
1 parent a12aec8 commit aea9fda

File tree

3 files changed

+3
-0
lines changed
  • src/lib/storage/vfs/rust/src

3 files changed

+3
-0
lines changed

src/lib/storage/vfs/rust/src/directory/connection/io1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ where
291291
DirectoryAdminRequest::Sync { responder } => {
292292
responder.send(ZX_ERR_NOT_SUPPORTED)?;
293293
}
294+
_ => {} // TODO(https://fxbug.dev/77623): Remove when the transition is complete.
294295
}
295296
Ok(ConnectionState::Alive)
296297
}

src/lib/storage/vfs/rust/src/file/connection/io1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ impl<T: 'static + File> FileConnection<T> {
309309
fuchsia_trace::duration!("storage", "File::AdvisoryLock");
310310
responder.send(&mut Err(ZX_ERR_NOT_SUPPORTED))?;
311311
}
312+
_ => {} // TODO(https://fxbug.dev/77623): Remove when the transition is complete.
312313
}
313314
Ok(ConnectionState::Alive)
314315
}

src/lib/storage/vfs/rust/src/file/vmo/connection/io1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ impl VmoFileConnection {
459459
FileRequest::AdvisoryLock { request: _, responder } => {
460460
responder.send(&mut Err(ZX_ERR_NOT_SUPPORTED))?;
461461
}
462+
_ => {} // TODO(https://fxbug.dev/77623): Remove when the transition is complete.
462463
}
463464
Ok(ConnectionState::Alive)
464465
}

0 commit comments

Comments
 (0)