File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,10 @@ void TNodeWarden::RemoveDrivesWithBadSerialsAndReport(TVector<NPDisk::TDriveData
90
90
}
91
91
92
92
TVector<NPDisk::TDriveData> TNodeWarden::ListLocalDrives () {
93
+ if (!AppData ()->FeatureFlags .GetEnableDriveSerialsDiscovery ()) {
94
+ return {};
95
+ }
96
+
93
97
TStringStream details;
94
98
TVector<NPDisk::TDriveData> drives = ListDevicesWithPartlabel (details);
95
99
Original file line number Diff line number Diff line change @@ -156,4 +156,5 @@ message TFeatureFlags {
156
156
optional bool EnableOlapCompression = 142 [default = false ];
157
157
optional bool EnableExternalDataSourcesOnServerless = 143 [default = true ];
158
158
optional bool EnableSparsedColumns = 144 [default = false ];
159
+ optional bool EnableDriveSerialsDiscovery = 152 [default = false ];
159
160
}
You can’t perform that action at this time.
0 commit comments