proc_part_type()

Type of a partition

Syntax:

int proc_part_type(const char *path, char *type);

Arguments:

Name Description
path partition path (e.g. /home)
type buffer to put the partition type

Description:

Get the filesystem type of a partition (e.g. ext3, vfat, ...).

Return Values:

On success, returns the partition path length. On error, -1 is returned.

See Also:

proc_part_mount(), proc_part_device()



INDEX