// Copyright 2017 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. #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace blobfs { zx_status_t VnodeBlob::GetHandles(uint32_t flags, fuchsia_io_NodeInfo* info) { if (IsDirectory()) { info->tag = fuchsia_io_NodeInfoTag_directory; return ZX_OK; } info->tag = fuchsia_io_NodeInfoTag_file; zx_status_t r = GetReadableEvent(&info->file.event); if (r < 0) { return r; } return ZX_OK; } }