diff --git a/doc/azure-nvme-id.8 b/doc/azure-nvme-id.8 index f46add7..7e11d2f 100644 --- a/doc/azure-nvme-id.8 +++ b/doc/azure-nvme-id.8 @@ -36,10 +36,10 @@ Parse device identifiers for udev consumption: .IP .EX $ sudo env DEVNAME=/dev/nvme1n1 azure\-nvme\-id \-\-udev -AZURE_NVME_VS=type=local,index=1,name=nvme\-110G\-1 -AZURE_NVME_TYPE=local -AZURE_NVME_INDEX=1 -AZURE_NVME_NAME=nvme\-110G\-1 +AZURE_DISK_VS=type=local,index=1,name=nvme\-110G\-1 +AZURE_DISK_TYPE=local +AZURE_DISK_INDEX=1 +AZURE_DISK_NAME=nvme\-110G\-1 .EE .PP Check \f[CR]azure\-nvme\-id\f[R] version: diff --git a/doc/azure-nvme-id.md b/doc/azure-nvme-id.md index 5a8dbd7..25c4347 100644 --- a/doc/azure-nvme-id.md +++ b/doc/azure-nvme-id.md @@ -48,10 +48,10 @@ Parse device identifiers for udev consumption: ```bash $ sudo env DEVNAME=/dev/nvme1n1 azure-nvme-id --udev -AZURE_NVME_VS=type=local,index=1,name=nvme-110G-1 -AZURE_NVME_TYPE=local -AZURE_NVME_INDEX=1 -AZURE_NVME_NAME=nvme-110G-1 +AZURE_DISK_VS=type=local,index=1,name=nvme-110G-1 +AZURE_DISK_TYPE=local +AZURE_DISK_INDEX=1 +AZURE_DISK_NAME=nvme-110G-1 ``` Check `azure-nvme-id` version: diff --git a/src/main.c b/src/main.c index 6155932..ac94c61 100644 --- a/src/main.c +++ b/src/main.c @@ -317,7 +317,7 @@ int enumerate_azure_nvme_controllers() */ void print_udev_key_value(const char *key, const char *value) { - printf("AZURE_NVME_"); + printf("AZURE_DISK_"); while (*key) { putchar(toupper((unsigned char)*key)); @@ -333,9 +333,9 @@ void print_udev_key_value(const char *key, const char *value) * type=local,index=2,name=nvme-600G-2 * * Environment variables printed include: - * AZURE_NVME_TYPE=local - * AZURE_NVME_INDEX=2 - * AZURE_NVME_NAME=nvme-600G-2 + * AZURE_DISK_TYPE=local + * AZURE_DISK_INDEX=2 + * AZURE_DISK_NAME=nvme-600G-2 */ int parse_vs_for_udev_import(char *vs) { @@ -367,10 +367,10 @@ int parse_vs_for_udev_import(char *vs) /** * Execute udev mode, printing out environment variables for import. * - * AZURE_NVME_VS: - * AZURE_NVME_TYPE: - * AZURE_NVME_INDEX: - * AZURE_NVME_NAME: + * AZURE_DISK_VS: + * AZURE_DISK_TYPE: + * AZURE_DISK_INDEX: + * AZURE_DISK_NAME: * etc... */ int execute_udev_import(void) @@ -389,7 +389,7 @@ int execute_udev_import(void) return 1; } - printf("AZURE_NVME_VS=%s\n", vs); + printf("AZURE_DISK_VS=%s\n", vs); parse_vs_for_udev_import(vs); free(vs);