Documentation ¶
Overview ¶
Package blkid provides bindings to libblkid.
Index ¶
- func DoProbe(pr C.blkid_probe)
- func FreeProbe(pr C.blkid_probe)
- func GetDevWithAttribute(attribute, value string) (string, error)
- func NewProbeFromFilename(s string) (C.blkid_probe, error)
- func ProbeGetPartitions(pr C.blkid_probe) C.blkid_partlist
- func ProbeGetPartitionsPartlistNumOfPartitions(ls C.blkid_partlist) int
- func ProbeLookupValue(pr C.blkid_probe, name string, size *int) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FreeProbe ¶
func FreeProbe(pr C.blkid_probe)
FreeProbe implements:
int blkid_partlist_numof_partitions (blkid_partlist ls);
func GetDevWithAttribute ¶
GetDevWithAttribute returns the dev name of a block device matching the ATTRIBUTE=VALUE pair. Supported attributes are:
TYPE: filesystem type UUID: filesystem uuid LABEL: filesystem label
func NewProbeFromFilename ¶
func NewProbeFromFilename(s string) (C.blkid_probe, error)
NewProbeFromFilename executes lblkid blkid_new_probe_from_filename.
func ProbeGetPartitions ¶
func ProbeGetPartitions(pr C.blkid_probe) C.blkid_partlist
ProbeGetPartitions implements:
blkid_partlist blkid_probe_get_partitions (blkid_probe pr);
func ProbeGetPartitionsPartlistNumOfPartitions ¶
func ProbeGetPartitionsPartlistNumOfPartitions(ls C.blkid_partlist) int
ProbeGetPartitionsPartlistNumOfPartitions implements:
int blkid_partlist_numof_partitions (blkid_partlist ls);
func ProbeLookupValue ¶
ProbeLookupValue implements:
int blkid_probe_lookup_value (blkid_probe pr, const char *name, const char **data, size_t *len);
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.