Skip to content

Commit

Permalink
fix get_t10dix_lbaf for non-10dix drives
Browse files Browse the repository at this point in the history
Differential Revision: D65219724

fbshipit-source-id: d364088e522c31edf18a5537e041299b94994e6c
  • Loading branch information
Kumar Amit authored and facebook-github-bot committed Oct 30, 2024
1 parent fab7aed commit 27faf84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/fb_storage/libraries/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ def self.get_t10dix_lbaf(device)
# dpc_valid = (nsid_json['dpc'] & (1 << 2) != 0 && nsid_json['dpc'] & (1 << 4) != 0)
dpc_valid = true

if lbaf != -1 && dpc_valid
if !lbaf.nil? && dpc_valid
return lbaf
else
return -1
Expand Down

0 comments on commit 27faf84

Please sign in to comment.