From: John Wolfe Date: Wed, 20 Apr 2022 20:24:07 +0000 (-0700) Subject: Improve the "don't touch this" comments for Linux guest identification. X-Git-Tag: stable-12.0.5~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c313c92ee618925a4b3afdfaca1efdfccd348b26;p=thirdparty%2Fopen-vm-tools.git Improve the "don't touch this" comments for Linux guest identification. Pull requests to add distro identification information are often submitted. Open-vm-tools does not own the guest identification code. Such a change requires coordinated changes throughout the VMware product stack. Improve the text to reduce pull requests for changes to common source code that open-vm-tools does not own and cannot make. --- diff --git a/open-vm-tools/lib/misc/hostinfoPosix.c b/open-vm-tools/lib/misc/hostinfoPosix.c index ab9271744..a5644244f 100644 --- a/open-vm-tools/lib/misc/hostinfoPosix.c +++ b/open-vm-tools/lib/misc/hostinfoPosix.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 1998-2021 VMware, Inc. All rights reserved. + * Copyright (C) 1998-2022 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published @@ -1236,13 +1236,15 @@ HostinfoSetSuseShortName(const ShortNameSet *entry, // IN: /* - * Table mapping from distro name to the offically recognized shortname. + * Table mapping from distro name to the officially recognized shortname. * - * Only distros that are officially supported by VMware are present in - * this table. If you're not VMware, do not add anything to this table. + * WARNING: If you are not VMware, do not change this table. Values that are + * not recognized by the VMware host will be ignored. Any change here must + * be accompanied by additional changes to the host. * - * A short name that is not officially supported by VMware will be ignored - * by the rest of the software stack. + * If you are interested in extending this table, do not send a pull request. + * Instead, submit a request via the open-vm-tools github issue tracker + * https://github.com/vmware/open-vm-tools/issues. * * Some distros do not have a simple substitution and special logic is * necessary to handle distros that do not have simple substitutions. @@ -1252,7 +1254,7 @@ HostinfoSetSuseShortName(const ShortNameSet *entry, // IN: */ static const ShortNameSet shortNameArray[] = { -/* Long distro name Short distro name Short name set function */ +/* Long distro name Short distro name Short name set function */ { "almalinux", STR_OS_ALMA_LINUX, HostinfoGenericSetShortName }, { "amazon", NULL, HostinfoSetAmazonShortName }, { "annvix", STR_OS_ANNVIX, HostinfoGenericSetShortName },