File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,10 @@ void TNodeWarden::RemoveDrivesWithBadSerialsAndReport(TVector<NPDisk::TDriveData
226
226
}
227
227
228
228
TVector<NPDisk::TDriveData> TNodeWarden::ListLocalDrives () {
229
+ if (!AppData ()->FeatureFlags .GetEnableDriveSerialsDiscovery ()) {
230
+ return {};
231
+ }
232
+
229
233
TStringStream details;
230
234
TVector<NPDisk::TDriveData> drives = ListDevicesWithPartlabel (details);
231
235
Original file line number Diff line number Diff line change @@ -174,4 +174,5 @@ message TFeatureFlags {
174
174
optional bool EnableWritePortionsOnInsert = 149 [default = false ];
175
175
optional bool EnableFollowerStats = 150 [default = false ];
176
176
optional bool EnableTopicAutopartitioningForReplication = 151 [default = false ];
177
+ optional bool EnableDriveSerialsDiscovery = 152 [default = false ];
177
178
}
You can’t perform that action at this time.
0 commit comments