GioUnix.MountEntry.get_root_path

### Method

# GioUnix MountEntryget_root_path

since: 2.84

#### Declaration [src]

    const char*
    g_unix_mount_entry_get_root_path (
      GUnixMountEntry* mount_entry
    )

#### Description [src]

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`.

Available since: 2.84

#### Return value

Type: `const char*`

A string containing the root, or `NULL` if not supported.

The returned data is owned by the instance.
The return value can be `NULL`.
The value is a NUL terminated UTF-8 string.