-
-
Notifications
You must be signed in to change notification settings - Fork 2k
[FREELDR] ArcGetFileInformation(): Set the Information->FileName, Length, and Attributes for filesystems #8420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Cc @disean and @iLauncherDev too for review! |
…gth, and Attributes for filesystems (reactos#8420) Add support for all the supported filesystems: FAT/FATX, NTFS, ISO, EXT, BTRFS, as well as for files loaded via PXE. arc.h: - Add `FILEATTRIBUTES` enumeration; - Remove non-existing `CreateReadOnly` and `SupersedeReadOnly` `OPENMODE` values; add missing `CreateReadWrite`.
21db845
to
5f11296
Compare
…gth, and Attributes for filesystems (reactos#8420) Add support for all the supported filesystems: FAT/FATX, NTFS, ISO, EXT, BTRFS, as well as for files loaded via PXE. arc.h: - Add `FILEATTRIBUTES` enumeration; - Remove non-existing `CreateReadOnly` and `SupersedeReadOnly` `OPENMODE` values; add missing `CreateReadWrite`.
5f11296
to
ac3965d
Compare
…gth, and Attributes for filesystems (reactos#8420) Add support for all the supported filesystems: FAT/FATX, NTFS, ISO, EXT, BTRFS, as well as for files loaded via PXE. arc.h: - Add `FILEATTRIBUTES` enumeration; - Remove non-existing `CreateReadOnly` and `SupersedeReadOnly` `OPENMODE` values; add missing `CreateReadWrite`.
ac3965d
to
63e0f9d
Compare
…gth, and Attributes for filesystems (reactos#8420) CORE-9023 Add support for all the supported filesystems: FAT/FATX, NTFS, ISO, EXT, BTRFS, as well as for files loaded via PXE. arc.h: - Add `FILEATTRIBUTES` enumeration; - Remove non-existing `CreateReadOnly` and `SupersedeReadOnly` `OPENMODE` values; add missing `CreateReadWrite`.
63e0f9d
to
dd114c7
Compare
… and Attributes for filesystems (reactos#8420) CORE-9023 Add support for all the supported filesystems: FAT/FATX, NTFS, ISO, EXT, BTRFS, as well as for files loaded via PXE. arc.h: - Add `FILEATTRIBUTES` enumeration; - Remove non-existing `CreateReadOnly` and `SupersedeReadOnly` `OPENMODE` values; add missing `CreateReadWrite`.
dd114c7
to
6f23e38
Compare
@disean please recheck :) |
ULONG FileNameLength; | ||
UCHAR Attributes; | ||
CHAR Filename[32]; | ||
CHAR FileName[32]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHAR FileName[32]; | |
_Field_z_ CHAR FileName[32]; |
I'd suggest using an explicit annotation that FileName
is a null-terminated string. Note that the spec uses a lowercase spelling style for the field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The spec has also some errors/inconsistencies too. One example (amongst many others) is the claim that this buffer is NULL-terminated even if it's counted. To be sure I add the NUL-terminator (as you've seen), but I have seen other code where the usage of the returned data wasn't assumed to be NUL-terminated.
(Regarding the casing of the name, it's now consistent with the "FileNameLength" field, and I based myself on debug symbols from some ARC binaries from MS / firmware. Additionally, if I were to follow them, names of other types would be slightly modified, like FILE_INFORMATION
, etc.)
… and Attributes for filesystems (reactos#8420) CORE-9023 Add support for all the supported filesystems: FAT/FATX, NTFS, ISO, EXT, BTRFS, as well as for files loaded via PXE. arc.h: - Add `FILEATTRIBUTES` enumeration; - Remove non-existing `CreateReadOnly` and `SupersedeReadOnly` `OPENMODE` values; add missing `CreateReadWrite`.
6f23e38
to
feeb05e
Compare
Purpose & Proposed changes
Add support for all the supported filesystems: FAT/FATX, NTFS, ISO, EXT, BTRFS, as well as for files loaded via PXE.
arc.h:
FILEATTRIBUTES
enumeration;CreateReadOnly
andSupersedeReadOnly
OPENMODE
values; add missingCreateReadWrite
.This PR depends on PR #8413 feature.