| // Copyright 2024 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| library fuchsia.fxfs.test; |
| using fuchsia.io; |
| using zx; |
| |
| @discoverable |
| closed protocol TestFxfsAdmin { |
| /// Clears the cache of the running test filesystem instance and return the new root directory. |
| strict ClearCache() -> (resource struct { |
| root_dir client_end:fuchsia.io.Directory; |
| }) error zx.Status; |
| /// Stops serving requests on the outgoing svc directory. The caller can now call shutdown on |
| /// the running test filesystem instance, which will clean up the filesystem. After shutdown is |
| /// called, the filesystem is no longer usuable. |
| strict Shutdown() -> (); |
| }; |