@@ -42,6 +42,7 @@ constexpr std::string_view kFileAttributePinned = "FILE_ATTRIBUTE_PINNED";
4242constexpr std::string_view kFileAttributeUnpinned = " FILE_ATTRIBUTE_UNPINNED" ;
4343constexpr std::string_view kFileAttributeRecallOnOpen = " FILE_ATTRIBUTE_RECALL_ON_OPEN" ;
4444constexpr std::string_view kFileAttributeRecallOnDataAccess = " FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS" ;
45+ constexpr std::string_view kFileAttributeStrictlySequential = " FILE_ATTRIBUTE_STRICTLY_SEQUENTIAL" ;
4546
4647constexpr std::array kFileAttributes = {
4748 std::tuple {FileAttribute::kFileAttributeReadOnly , kFileAttributeReadOnly , ' R' },
@@ -66,6 +67,7 @@ constexpr std::array kFileAttributes = {
6667 std::tuple {FileAttribute::kFileAttributeUnpinned , kFileAttributeUnpinned , ' u' },
6768 std::tuple {FileAttribute::kFileAttributeRecallOnOpen , kFileAttributeRecallOnOpen , ' o' },
6869 std::tuple {FileAttribute::kFileAttributeRecallOnDataAccess , kFileAttributeRecallOnDataAccess , ' a' },
70+ std::tuple {FileAttribute::kFileAttributeStrictlySequential , kFileAttributeStrictlySequential , ' l' }
6971};
7072
7173bool HasInvalidFlag (uint32_t flags)
@@ -102,10 +104,6 @@ std::string ToString(FileAttribute flags)
102104
103105 if (::HasInvalidFlag (std::underlying_type_t <FileAttribute>(flags)))
104106 {
105- Log::Debug (
106- " Failed to convert some FileAttribute flags to string (value: {})" ,
107- std::underlying_type_t <FileAttribute>(flags));
108-
109107 return fmt::format (" {:#x}" , std::underlying_type_t <FileAttribute>(flags));
110108 }
111109
@@ -141,10 +139,6 @@ char ToIdentifier(FileAttribute flags)
141139
142140 if (::HasInvalidFlag (std::underlying_type_t <FileAttribute>(flags)))
143141 {
144- Log::Debug (
145- " Failed to convert some FileAttribute flags to identifier (value: {})" ,
146- std::underlying_type_t <FileAttribute>(flags));
147-
148142 return ' ?' ;
149143 }
150144
@@ -154,9 +148,6 @@ char ToIdentifier(FileAttribute flags)
154148 {
155149 if (flags != f)
156150 {
157- Log::Debug (
158- " Failed to convert some FileAttribute flags to unique identifier (value: {})" ,
159- std::underlying_type_t <FileAttribute>(flags));
160151 return ' ?' ;
161152 }
162153
@@ -181,10 +172,6 @@ std::string ToIdentifiers(FileAttribute flags)
181172
182173 if (::HasInvalidFlag (std::underlying_type_t <FileAttribute>(flags)))
183174 {
184- Log::Debug (
185- " Failed to convert some FileAttribute flags to string (value: {})" ,
186- std::underlying_type_t <FileAttribute>(flags));
187-
188175 return fmt::format (" {:#x}" , std::underlying_type_t <FileAttribute>(flags));
189176 }
190177
0 commit comments