get_root_path


Description:

[ Version ( since = "2.60" ) ]
public unowned string get_root_path ()

Gets the root of the mount within the filesystem.

Note:

Use [method@GioUnix.MountEntry.get_root_path] instead.

This is useful e.g. for mounts created by bind operation, or btrfs subvolumes.

For example, the root path is equal to `/` for a mount created by `mount /dev/sda1 /mnt/foo` and `/bar` for `mount --bind /mnt/foo/bar /mnt/bar`.

Parameters:

mount_entry

a [struct@GioUnix.MountEntry]

Returns:

a string containing the root, or `NULL` if not supported