Add ebsnvme-id to EC2 AMIs and enable /dev/aws/disk
authorColin Percival <cperciva@FreeBSD.org>
Mon, 18 May 2020 02:14:25 +0000 (02:14 +0000)
committerColin Percival <cperciva@FreeBSD.org>
Mon, 18 May 2020 02:14:25 +0000 (02:14 +0000)
commit5f148eeefda57c39b5c650b4a29bf195c461e3a3
treec96bee0dde4257709df67fc8c4458a3af83c087d
parent20076f97fd18d22b22ee3695325d2e91ae812ad1
Add ebsnvme-id to EC2 AMIs and enable /dev/aws/disk

The ebsnvme-id utility exposes information about EC2 disks -- for
Elastic Block Store volumes, their volume IDs and "linux device
names", and for Instance Store (aka "Ephemeral") disks, their
serial numbers.

The dev_aws_disk rc.d script and associated devd.conf rule maintains
a tree under /dev/aws/disk:
/dev/aws/disk/ebs/<volume ID>
/dev/aws/disk/linuxname/<linux device name>
/dev/aws/disk/ephemeral/<serial number>
which are symlinks to the corresponding nda or nvd devices.

MFC after: 1 week
Sponsored by: https://www.patreon.com/cperciva
release/tools/ec2.conf