docs: def fstype(device):
      '''
      Return the filesystem name of the specified device
  
      .. versionadded:: 2016.11.0
  
      device
          The name of the device
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' disk.fstype /dev/sdX1
      '''
      if salt.utils.path.which('lsblk'):
          lsblk_out = __salt__['cmd.run']('lsblk -o fstype {0}'.format(device)).splitlines()
          if len(lsblk_out) > 1:
              fs_type = lsblk_out[1].strip()
              if fs_type:
                  return fs_type
  
      if salt.utils.path.which('df'):
          # the fstype was not set on the block device, so inspect the filesystem
          # itself for its type
          if __grains__['kernel'] == 'AIX' and os.path.isfile('/usr/sysv/bin/df'):
              df_out = __salt__['cmd.run']('/usr/sysv/bin/df -n {0}'.format(device)).split()
              if len(df_out) > 2:
                  fs_type = df_out[2]
                  if fs_type:
                      return fs_type
          else:
              df_out = __salt__['cmd.run']('df -T {0}'.format(device)).splitlines()
              if len(df_out) > 1:
                  fs_type = df_out[1]
                  if fs_type:
                      return fs_type
  
      return ''