Records

Functions

  • void advisory_lock (zx_koid_t owner, fbl::RefPtr<fs::Vnode> vnode, bool range_ok, ::fuchsia_io::wire::AdvisoryLockRequest & request, fit::callback<void (zx_status_t)> callback)

    Defined at line 19 of file ../../src/storage/lib/vfs/cpp/connection/advisory_lock.cc

  • fuchsia_io::Rights DownscopeRights (fuchsia_io::Rights rights, VnodeProtocol protocol)

    Downscope |rights| to only include those operations which |protocol| supports, or those which are

    applicable to child nodes. This follows the principle of least privilege.

    Defined at line 163 of file ../../src/storage/lib/vfs/cpp/vfs_types.cc

  • zx::result<VnodeProtocol> NegotiateProtocol (fuchsia_io::NodeProtocolKinds supported, fuchsia_io::NodeProtocolKinds requested)

    Determines the protocol to use for serving a connection, based on the |supported| protocols for

    a node, and those which were |requested|.

    Note that this function is not part of the |Vnode| interface. The fuchsia.io protocol does not

    define a specific order of protocol resolution when |requested| is ambiguous, but we define a

    strict mapping here to enforce consistency across the Fuchsia VFS libraries.

    Defined at line 251 of file ../../src/storage/lib/vfs/cpp/vfs_types.cc

  • zx::result<VnodeProtocol> NegotiateProtocol (fuchsia_io::Flags flags, fuchsia_io::NodeProtocolKinds supported)

    Determines the protocol to use for serving a connection, based on the |supported| protocols for

    a node, and those which were requested in |flags|.

    Defined at line 207 of file ../../src/storage/lib/vfs/cpp/vfs_types.cc

  • fuchsia_io::NodeProtocolKinds GetProtocols (fuchsia_io::Flags flags)

    Defined at line 270 of file ../../src/storage/lib/vfs/cpp/vfs_types.h

  • uint32_t GetPosixMode (fuchsia_io::NodeProtocolKinds protocols, fuchsia_io::Abilities abilities)

    Synthesizes a set of POSIX mode bits using a node's supported protocols and abilities.

    This implementation mirrors that of |get_posix_mode| in fdio.

    Unlike the ZXIO implementation, this function is *only* used for synthesizing the mode bits

    reported by the io1 GetAttrs method. Callers should use the io2 GetAttributes method to get

    an accurate representation of the mode bits.

    Defined at line 284 of file ../../src/storage/lib/vfs/cpp/vfs_types.cc

  • fuchsia_io::Rights FlagsToRights (fuchsia_io::Flags flags)

    Defined at line 295 of file ../../src/storage/lib/vfs/cpp/vfs_types.h

  • fuchsia_io::Flags RightsToFlags (fuchsia_io::Rights rights)

    Defined at line 301 of file ../../src/storage/lib/vfs/cpp/vfs_types.h

  • CreationMode CreationModeFromFidl (fuchsia_io::OpenFlags flags)

    Defined at line 307 of file ../../src/storage/lib/vfs/cpp/vfs_types.h

  • CreationMode CreationModeFromFidl (fuchsia_io::Flags flags)

    Defined at line 317 of file ../../src/storage/lib/vfs/cpp/vfs_types.h