Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

The xvd vs sd distinction got removed; update comment #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ebs-nvme-mapping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ fi

# capture 32 bytes at an offset of 3072 bytes from the raw-binary data
# not all block devices are extracted with /dev/ prefix
# use `xvd` prefix instead of `sd`
# remove all trailing space
nvme_link=$( \
nvme id-ctrl --raw-binary "${1}" | \
cut -c3073-3104 | \
sed 's/^\/dev\///g'| \
tr -d '[:space:]' \
);
echo $nvme_link;
echo $nvme_link;