Skip to content

Commit

Permalink
google_nvme_id: sync with latest upstream version
Browse files Browse the repository at this point in the history
  • Loading branch information
HuijingHei committed Nov 20, 2023
1 parent 6afdea7 commit 4501150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay.d/30gcp-udev-rules/usr/lib/udev/google_nvme_id
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function err() {
#######################################
function get_namespace_device_name() {
local nvme_json
nvme_json="$("$nvme_cli_bin" id-ns -b "$1" | cut -b 384-)"
nvme_json="$("$nvme_cli_bin" id-ns -b "$1" | dd bs=1 skip=384 2>/dev/null)"
if [[ $? -ne 0 ]]; then
return 1
fi
Expand Down

0 comments on commit 4501150

Please sign in to comment.