^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * linux/fs/adfs/dir_fplus.h
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright (C) 1999 Russell King
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * Structures of directories on the F+ format disk
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define ADFS_FPLUS_NAME_LEN 255
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define BIGDIRSTARTNAME ('S' | 'B' << 8 | 'P' << 16 | 'r' << 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define BIGDIRENDNAME ('o' | 'v' << 8 | 'e' << 16 | 'n' << 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) struct adfs_bigdirheader {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) __u8 startmasseq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) __u8 bigdirversion[3];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) __le32 bigdirstartname;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) __le32 bigdirnamelen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) __le32 bigdirsize;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) __le32 bigdirentries;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) __le32 bigdirnamesize;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) __le32 bigdirparent;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) char bigdirname[1];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) } __attribute__((packed, aligned(4)));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct adfs_bigdirentry {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) __le32 bigdirload;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) __le32 bigdirexec;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) __le32 bigdirlen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) __le32 bigdirindaddr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) __le32 bigdirattr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) __le32 bigdirobnamelen;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) __le32 bigdirobnameptr;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) } __attribute__((packed, aligned(4)));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) struct adfs_bigdirtail {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) __le32 bigdirendname;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) __u8 bigdirendmasseq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) __u8 reserved[2];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) __u8 bigdircheckbyte;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) } __attribute__((packed, aligned(4)));