UnixMountEntry

Defines a Unix mount entry (e.g. <filename>/media/cdrom</filename>). This corresponds roughly to a mtab entry.

Constructors

this
this(GUnixMountEntry* gUnixMountEntry, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

compare
int compare(UnixMountEntry mount2)

Compares two unix mounts.

copy
UnixMountEntry copy()

Makes a copy of mount_entry.

free
void free()

Frees a unix mount.

getDevicePath
string getDevicePath()

Gets the device path for a unix mount.

getFsType
string getFsType()

Gets the filesystem type for the unix mount.

getMountPath
string getMountPath()

Gets the mount path for a unix mount.

getOptions
string getOptions()

Gets a comma-separated list of mount options for the unix mount. For example, rw,relatime,seclabel,data=ordered.

getRootPath
string getRootPath()

Gets the root of the mount within the filesystem. This is useful e.g. for mounts created by bind operation, or btrfs subvolumes.

getStruct
void* getStruct()

the main Gtk struct as a void*

getUnixMountEntryStruct
GUnixMountEntry* getUnixMountEntryStruct(bool transferOwnership)

Get the main Gtk struct

guessCanEject
bool guessCanEject()

Guesses whether a Unix mount can be ejected.

guessIcon
IconIF guessIcon()

Guesses the icon of a Unix mount.

guessName
string guessName()

Guesses the name of a Unix mount. The result is a translated string.

guessShouldDisplay
bool guessShouldDisplay()

Guesses whether a Unix mount should be displayed in the UI.

guessSymbolicIcon
IconIF guessSymbolicIcon()

Guesses the symbolic icon of a Unix mount.

isReadonly
bool isReadonly()

Checks if a unix mount is mounted read only.

isSystemInternal
bool isSystemInternal()

Checks if a Unix mount is a system mount. This is the Boolean OR of g_unix_is_system_fs_type(), g_unix_is_system_device_path() and g_unix_is_mount_path_system_internal() on mount_entry’s properties.

Static functions

at
UnixMountEntry at(string mountPath, ulong timeRead)

Gets a gio.UnixMountEntry 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 g_unix_mounts_changed_since().

getType
GType getType()
isMountPathSystemInternal
bool isMountPathSystemInternal(string mountPath)

Determines if mount_path is considered an implementation of the OS. This is primarily used for hiding mountable and mounted volumes that only are used in the OS and has little to no relevance to the casual user.

mountFor
UnixMountEntry mountFor(string filePath, ulong timeRead)

Gets a gio.UnixMountEntry 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 g_unix_mounts_changed_since().

mountPointsGet
ListG mountPointsGet(ulong timeRead)

Gets a GList of gio.UnixMountPoint containing the unix mount points. If time_read is set, it will be filled with the mount timestamp, allowing for checking if the mounts have changed with g_unix_mount_points_changed_since().

mountsChangedSince
bool mountsChangedSince(ulong time)

Checks if the unix mounts have changed since a given unix time.

mountsGet
ListG mountsGet(ulong timeRead)

Gets a GList of gio.UnixMountEntry containing the unix mounts. If time_read is set, it will be filled with the mount timestamp, allowing for checking if the mounts have changed with g_unix_mounts_changed_since().

pointsChangedSince
bool pointsChangedSince(ulong time)

Checks if the unix mount points have changed since a given unix time.

Variables

gUnixMountEntry
GUnixMountEntry* gUnixMountEntry;

the main Gtk struct