Gio.Mount.prototype.remount

function remount(flags: Gio.MountMountFlags, mount_operation: Gio.MountOperation, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_mount_remount()
}
  

Remounts a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.prototype.remount_finish with the mount and #GAsyncResults data returned in the callback.

Remounting is useful when some setting affecting the operation of the volume has been changed, as these may need a remount to take affect. While this is semantically equivalent with unmounting and then remounting not all backends might need to actually be unmounted.

flags

flags affecting the operation

mount_operation

a Gio.MountOperation or null to avoid user interaction.

cancellable

optional Gio.Cancellable object, null to ignore.

callback

a Gio.AsyncReadyCallback, or null.