Skip to content

Commit b574e5a

Browse files
authored
Add feature flag to enable drive serial numbers discovery (#11183)
1 parent ce3a4b0 commit b574e5a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ydb/core/blobstorage/nodewarden/node_warden_impl.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ void TNodeWarden::RemoveDrivesWithBadSerialsAndReport(TVector<NPDisk::TDriveData
226226
}
227227

228228
TVector<NPDisk::TDriveData> TNodeWarden::ListLocalDrives() {
229+
if (!AppData()->FeatureFlags.GetEnableDriveSerialsDiscovery()) {
230+
return {};
231+
}
232+
229233
TStringStream details;
230234
TVector<NPDisk::TDriveData> drives = ListDevicesWithPartlabel(details);
231235

ydb/core/protos/feature_flags.proto

+1
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,5 @@ message TFeatureFlags {
174174
optional bool EnableWritePortionsOnInsert = 149 [default = false];
175175
optional bool EnableFollowerStats = 150 [default = false];
176176
optional bool EnableTopicAutopartitioningForReplication = 151 [default = false];
177+
optional bool EnableDriveSerialsDiscovery = 152 [default = false];
177178
}

0 commit comments

Comments
 (0)