DirectoryEntry.h 408 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/OwnPtr.h>
  8. #include <AK/Types.h>
  9. #include <Kernel/FileSystem/Inode.h>
  10. #include <Kernel/KString.h>
  11. namespace Kernel {
  12. struct Ext2FSDirectoryEntry {
  13. NonnullOwnPtr<KString> name;
  14. InodeIndex inode_index { 0 };
  15. u8 file_type { 0 };
  16. u16 record_length { 0 };
  17. };
  18. }