Function

GioUnix-2.0GioUnixmount_get_root_pathDeprecated 2.84Since 2.60

  • Gets the root of the mount within the filesystem.

    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

    Returns string | null

    a string containing the root, or NULL if not supported

    2.60

    since 2.84: Use GioUnix.MountEntry.get_root_path instead.