Skip to content

Commit 13fe525

Browse files
committed
OrcCommand: NTFSInfo: add column 'ShadowCopyId' to volstats.csv
1 parent 05d593a commit 13fe525

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

src/OrcCommand/Command/FatInfo/FatInfoSqlSchema.xml

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
</enum>
7979
<bool name="Parse" />
8080
<utf16 name="MountPoint" maxlen="256" />
81+
<utf16 name="ShadowCopyId" maxlen="256" />
8182
</table>
8283

8384
</sqlschema>

src/OrcCommand/Command/GetThis/GetThis_Run.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ CreateSampleFileName(const Main::SampleRef& sample, const PFILE_NAME pFileName,
533533
const auto FRN = reinterpret_cast<const LARGE_INTEGER*>(&sample.FRN)->QuadPart;
534534
const auto parentFRN = reinterpret_cast<const LARGE_INTEGER*>(&pFileName->ParentDirectory)->QuadPart;
535535
const auto contentType = Command::GetThis::ToString(sample.Content.Type);
536-
const auto snapshotId = ::ToString(sample.SnapshotID);
536+
const auto snapshotId = ToString(sample.SnapshotID);
537537

538538
if (dataName.size())
539539
{

src/OrcCommand/Command/NTFSInfo/NTFSInfoSqlSchema.xml

+1
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
</enum>
203203
<bool name="Parse" />
204204
<utf16 name="MountPoint" maxlen="256" />
205+
<utf16 name="ShadowCopyId" maxlen="256" />
205206
</table>
206207
</sqlschema>
207208

src/OrcCommand/UtilitiesMain.h

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include "Log/UtilitiesLoggerConfiguration.h"
4040
#include "Log/LogTerminationHandler.h"
4141
#include "Utils/StdStream/StandardOutput.h"
42+
#include "Text/Guid.h"
4243
#include "VolumeReader.h"
4344

4445
#include "Utils/EnumFlags.h"
@@ -122,6 +123,7 @@ class UtilitiesMain
122123
volStatOutput.WriteString(FSVBR::GetFSName(reader->GetFSType()).c_str());
123124
volStatOutput.WriteBool(loc->GetParse());
124125
volStatOutput.WriteString(fmt::format(L"{}", fmt::join(loc->GetPaths(), L";")));
126+
volStatOutput.WriteString(loc->GetShadow() ? ToStringW(loc->GetShadow()->guid).c_str() : L"");
125127
volStatOutput.WriteEndOfLine();
126128
}
127129
else

0 commit comments

Comments
 (0)