Skip to content

Commit 27faf84

Browse files
Kumar Amitfacebook-github-bot
authored andcommitted
fix get_t10dix_lbaf for non-10dix drives
Differential Revision: D65219724 fbshipit-source-id: d364088e522c31edf18a5537e041299b94994e6c
1 parent fab7aed commit 27faf84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbooks/fb_storage/libraries/storage.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1376,7 +1376,7 @@ def self.get_t10dix_lbaf(device)
13761376
# dpc_valid = (nsid_json['dpc'] & (1 << 2) != 0 && nsid_json['dpc'] & (1 << 4) != 0)
13771377
dpc_valid = true
13781378

1379-
if lbaf != -1 && dpc_valid
1379+
if !lbaf.nil? && dpc_valid
13801380
return lbaf
13811381
else
13821382
return -1

0 commit comments

Comments
 (0)