John, how were the server filesystems mounted originally? Did they get mounted with "mount -t lustre" or "mount -t lustre_tgt" initially? Since 2.13, "mount -t lustre" will internally call "mount.lustre" and "mount -t lustre_tgt" will internally call "mount.lustre_tgt", but both are the same binary and will try "lustre_tgt" first for server mountpoints (block devices) and then fall back to using "lustre" if that doesn't work. I tested a trivial change to "mount_lustre.c" that only uses "lustre", and "mount -t lustre" now works fine. It would probably be trivial to distinguish via "argv[0]" which binary is being called and use that preferentially so that the mounted type matches what is requested.
Since commit v2_12_58-71-g510aea4a37, the use of lustre_tgt is optional so it is still possible to mount a server as type lustre to give some time to migrate system configurations. We definitely want to keep this compatibility until at least the next LTS, so that there is at least one commonly-used release where it is possible to use either type so upgrade/downgrade is possible without a flag day for changing the configuration at the same time. Possibly for 2.14 or 2.15 it seems reasonable to add a message to mount.lustre and/or the kernel to warn if lustre is used for a server mountpoint, but that wouldn't cause any errors for users.
John also pointed out that "stat -f" should handle this as well. This will currently report "UNKNOWN (0xbd00bd1)" as the filesystem magic (LUSTRE_SUPER_MAGIC), regardless of what type it was mounted as. This is also true on my 2.10.8 server, so it is not a regression introduced by LU-12514. It makes sense to submit an upstream patch to fix this to return "lustre_tgt" so that it is correct by the time it makes its way into the vendor distros. If anyone is using bleeding-edge coreutils it is likely that they are also using a newer Lustre release, or this is on the client where it doesn't matter since it returns magic "LL_SUPER_MAGIC = 0x0bd00bd0" which is mapped to "lustre" in userspace.
Landed for 2.14