GsdFillOperation

GsdFillOperation — Wrapper for sfill.

Functions

Properties

gchar * directory Read / Write
GsdFillOperationWipeMode wipe-mode Read / Write

Types and Values

Object Hierarchy

    GEnum
    ╰── GsdFillOperationWipeMode
    GObject
    ╰── GsdAsyncOperation
        ╰── GsdSecureDeleteOperation
            ╰── GsdZeroableOperation
                ╰── GsdFillOperation

Description

Functions

gsd_fill_operation_run ()

gboolean
gsd_fill_operation_run (GsdFillOperation *self,
                        const gchar *directory,
                        GError **error);

Launches a secure filling asynchronously.

Parameters

self

the GsdFillOperation instance

 

directory

 .

the directory to fill. It is exactly the same as setting the FillOperation:directory property, just a convenience possibility.

.

[in][allow-none]

error

location to store the error occuring, or NULL to ignore.

[error-domains GSpawnError GsdAsyncOperationError]

Returns

whether subprocess started successfully.


gsd_fill_operation_run_sync ()

gboolean
gsd_fill_operation_run_sync (GsdFillOperation *self,
                             const gchar *directory,
                             GError **error);

Launches a secure filling synchronously.

Parameters

self

the GsdFillOperation instance

 

directory

 .

the directory to fill. It is exactly the same as setting the FillOperation:directory property, just a convenience possibility.

.

[in][allow-none]

error

location to store the error occuring, or NULL to ignore.

[error-domains GSpawnError GsdAsyncOperationError]

Returns

whether filling was successful.


gsd_fill_operation_new ()

GsdFillOperation *
gsd_fill_operation_new (void);

gsd_fill_operation_get_wipe_mode ()

GsdFillOperationWipeMode
gsd_fill_operation_get_wipe_mode (GsdFillOperation *self);

Get and return the current value of the "wipe-mode" property.

The wiping mode

Parameters

self

the GsdFillOperation instance to query

 

Returns

the value of the "wipe-mode" property


gsd_fill_operation_set_wipe_mode ()

void
gsd_fill_operation_set_wipe_mode (GsdFillOperation *self,
                                  GsdFillOperationWipeMode value);

Set the value of the "wipe-mode" property to value .

The wiping mode

Parameters

self

the GsdFillOperation instance to modify

 

value

the new value of the "wipe-mode" property

 

gsd_fill_operation_get_directory ()

const gchar *
gsd_fill_operation_get_directory (GsdFillOperation *self);

Get and return the current value of the "directory" property.

The directory to fill (must of course be on the filesystem to clean)

I recommend you not to fill in a useful directory but inside a new and clean one. This can be useful if the filling is interrupted, voluntarily or not, as this process may spawn a lot of files that might not be deleted when interrupted.

Parameters

self

the GsdFillOperation instance to query

 

Returns

the value of the "directory" property


gsd_fill_operation_set_directory ()

void
gsd_fill_operation_set_directory (GsdFillOperation *self,
                                  const gchar *value);

Set the value of the "directory" property to value .

The directory to fill (must of course be on the filesystem to clean)

I recommend you not to fill in a useful directory but inside a new and clean one. This can be useful if the filling is interrupted, voluntarily or not, as this process may spawn a lot of files that might not be deleted when interrupted.

Parameters

self

the GsdFillOperation instance to modify

 

value

the new value of the "directory" property

 

Types and Values

GSD_TYPE_FILL_OPERATION

#define GSD_TYPE_FILL_OPERATION (gsd_fill_operation_get_type ())

The type for GsdFillOperation.


enum GsdFillOperationWipeMode

What to wipe

Members

GSD_FILL_OPERATION_WIPE_MODE_FULL

wipe both free inode and data free space.

 

GSD_FILL_OPERATION_WIPE_MODE_INODES

wipe only free inode space (not free data space)

 

GSD_FILL_OPERATION_WIPE_MODE_DATA

wipe only free data space (not free inode space)

 

struct GsdFillOperation

struct GsdFillOperation;

Wrapper for sfill.


struct GsdFillOperationClass

struct GsdFillOperationClass {
	GsdZeroableOperationClass parent_class;
};

The class structure for GSD_TYPE_FILL_OPERATION. All the fields in this structure are private and should never be accessed directly.

Members

Property Details

The “directory” property

  “directory”                gchar *

The directory to fill (must of course be on the filesystem to clean)

I recommend you not to fill in a useful directory but inside a new and clean one. This can be useful if the filling is interrupted, voluntarily or not, as this process may spawn a lot of files that might not be deleted when interrupted.

Flags: Read / Write

Default value: NULL


The “wipe-mode” property

  “wipe-mode”                GsdFillOperationWipeMode

The wiping mode

Flags: Read / Write

Default value: GSD_FILL_OPERATION_WIPE_MODE_FULL