AbstractSince 2.84compareCompares two Unix mounts.
second GioUnix.MountEntry to compare
1, 0 or -1 if mount1 is greater than, equal to, or less than mount2, respectively
Since 2.84copySince 2.84freeSince 2.84get_Since 2.84get_Since 2.84get_Since 2.84get_Gets a comma separated list of mount options for the Unix mount.
For example: rw,relatime,seclabel,data=ordered.
This is similar to GioUnix.MountPoint.get_options, but it takes a GioUnix.MountEntry as an argument.
a string containing the options, or NULL if not available.
Since 2.84get_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.
a string containing the root, or NULL if not supported
Since 2.84guess_Since 2.84guess_Since 2.84guess_Since 2.84guess_Since 2.84guess_Since 2.84is_Since 2.84is_Checks if a Unix mount is a system mount.
This is the Boolean OR of
GioUnix.is_system_fs_type, GioUnix.is_system_device_path and
GioUnix.is_mount_path_system_internal on mount_entry’s properties.
The definition of what a ‘system’ mount entry is may change over time as new file system types and device paths are ignored.
true if the Unix mount is for a system path; false otherwise
StaticSince 2.84atGets a GioUnix.MountEntry for a given mount path.
If time_read is set, it will be filled with a Unix timestamp for checking
if the mounts have changed since with
GioUnix.mount_entries_changed_since.
If more mounts have the same mount path, the last matching mount is returned.
This will return NULL if there is no mount point at mount_path.
path for a possible Unix mount
StaticSince 2.84forGets a GioUnix.MountEntry for a given file path.
If time_read is set, it will be filled with a Unix timestamp for checking
if the mounts have changed since with
GioUnix.mount_entries_changed_since.
If more mounts have the same mount path, the last matching mount is returned.
This will return NULL if looking up the mount entry fails, if
file_path doesn’t exist or there is an I/O error.
file path on some Unix mount
Defines a Unix mount entry (e.g.
/media/cdrom). This corresponds roughly to a mtab entry.