Struct easy_fs::layout::FATLongDirEnt
source · [−]#[repr(packed)]pub struct FATLongDirEnt {
ord: u8,
name1: [u16; 5],
attr: FATDiskInodeType,
ldir_type: u8,
chk_sum: u8,
name2: [u16; 6],
fst_clus_lo: u16,
name3: [u16; 2],
}
Expand description
On-disk data structure for partition information.
Fields
ord: u8
The order of this entry in the sequence of long dir entries.
It is associated with the short dir entry at the end of the long dir set,
and masked with 0x40 (LAST_LONG_ENTRY
),
which indicates that the entry is the last long dir entry in a set of long dir entries.
All valid sets of long dir entries must begin with an entry having this mask.
name1: [u16; 5]
Characters 1-5 of the long-name sub-component in this dir entry.
attr: FATDiskInodeType
Attributes - must be ATTR_LONG_NAME
ldir_type: u8
If zero, indicates a directory entry that is a sub-component of a long name.
NOTE
Other values reserved for future extensions. Non-zero implies other dirent types.
chk_sum: u8
Checksum of name in the short dir entry at the end of the long dir set.
name2: [u16; 6]
Characters 6-11 of the long-name sub-component in this dir entry.
fst_clus_lo: u16
Must be ZERO. This is an artifact of the FAT “first cluster”, and must be zero for compatibility with existing disk utilities. It’s meaningless in the context of a long dir entry.
name3: [u16; 2]
Characters 12-13 of the long-name sub-component in this dir entry
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FATLongDirEnt
impl Send for FATLongDirEnt
impl Sync for FATLongDirEnt
impl Unpin for FATLongDirEnt
impl UnwindSafe for FATLongDirEnt
Blanket Implementations
Mutably borrows from an owned value. Read more