code: def disk_partitions(all=False):
      '''
      Return a list of disk partitions and their device, mount point, and
      filesystem type.
  
      all
          if set to False, only return local, physical partitions (hard disk,
          USB, CD/DVD partitions).  If True, return all filesystems.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ps.disk_partitions
      '''
      result = [dict(partition._asdict()) for partition in
                psutil.disk_partitions(all)]
      return resulf disk_partitions(all=False):
      '''
      Return a list of disk partitions and their device, mount point, and
      filesystem type.
  
      all
          if set to False, only return local, physical partitions (hard disk,
          USB, CD/DVD partitions).  If True, return all filesystems.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ps.disk_partitions
      '''
      result = [dict(partition._asdict()) for partition in
                psutil.disk_partitions(all)]
      return result
docs: Return a list of disk partitions and their device, mount point, and
      filesystem type.
  
      all
          if set to False, only return local, physical partitions (hard disk,
          USB, CD/DVD partitions).  If True, return all filesystems.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' ps.disk_partitions