How to know what the different `roles` do in `diskutil apfs` shell command

Solution 1:

The roles are:

B=Preboot (boot loader)
R=Recovery
V=VM (swap space)
I=Installer (temporary usage)
T=Backup (Time Machine)
S=System
D=Data
U=User
N=Baseband
E=Update
X=XART (hardware security)
H=Hardware
L=Internal
C=Sidecar (Time Machine)
Y=Enterprise (data)
G=iDiagnostics (EFI)

Note that Tis used for the old version of Time Machine backups, whereas newer systems will be using the C role.