X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FFilesystems%2FNTFS%2Fattributes.h;fp=Modules%2FFilesystems%2FNTFS%2Fattributes.h;h=671a36e79344d1abe36f09fbb1a411731307bb8d;hb=5b9f97fc9b10ded09a844935f7cd0d33e5d2e4d6;hp=0000000000000000000000000000000000000000;hpb=e89bb46ecd13feaa786f8b156d5195835aaf459e;p=tpg%2Facess2.git diff --git a/Modules/Filesystems/NTFS/attributes.h b/Modules/Filesystems/NTFS/attributes.h new file mode 100644 index 00000000..671a36e7 --- /dev/null +++ b/Modules/Filesystems/NTFS/attributes.h @@ -0,0 +1,38 @@ +/* + * Acess2 - NTFS Driver + * By John Hodge (thePowersGang) + * This file is published under the terms of the Acess licence. See the + * file COPYING for details. + * + * attributes.h - MFT Attribute Types + */ +#ifndef _ATTRIBUTES_H_ +#define _ATTRIBUTES_H_ + +typedef struct +{ + Uint64 ParentDirectory; //!< Parent directory MFT entry + Sint64 CreationTime; //!< Time the file was created + Sint64 LastDataModTime; //!< Last change time for the data + Sint64 LastMtfModTime; //!< Last change time for the MFT entry + Sint64 LastAccessTime; //!< Last Access Time (unreliable on most systems) + + Uint64 AllocatedSize; //!< Allocated data size for $DATA unnamed stream + Uint64 DataSize; //!< Actual size of $DATA unnamed stream + Uint32 Flags; //!< File attribute files + + union { + struct { + Uint16 PackedSize; //!< Size of buffer needed for extended attributes + Uint16 _reserved; + } PACKED ExtAttrib; + struct { + Uint32 Tag; //!< Type of reparse point + } PACKED ReparsePoint; + } PACKED Type; + + Uint8 FilenameType; //!< Filename namespace (DOS, Windows, Unix) + WCHAR Filename[0]; +} PACKED tNTFS_Attrib_Filename; + +#endif