AbstractCompares two Unix mounts.
second GioUnix.MountEntry to compare
1, 0 or -1 if mount1 is greater than, equal to, or less than mount2, respectively
Frees a Unix mount.
Gets the device path for a Unix mount.
a string containing the device path
Gets the filesystem type for the Unix mount.
a string containing the file system type
Gets the mount path for a Unix mount.
the mount path for mount_entry
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.
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
Guesses whether a Unix mount entry can be ejected.
true if mount_entry is deemed to be ejectable; false otherwise
Guesses the name of a Unix mount entry.
The result is a translated string.
a newly allocated translated string
Guesses whether a Unix mount entry should be displayed in the UI.
true if mount_entry is deemed to be displayable; false otherwise
Checks if a Unix mount is mounted read only.
true if mount_entry is read only; false otherwise
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
StaticatGets 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
StaticforGets 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.