YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • FileUtils
  • Label
  • Progress
  • Report
  • String

Global Functions

Local Functions

Info:

File: modules/Snapper.ycp Summary: Snapper settings, input and output functions Authors: Jiri Suchomel

$Id$

global ReadModifiedFilesIndex (integer from, integer to) -> map<string,map>

Return map of files modified between given snapshots Return structure has just one level, and maps each modified file to it's modification map

Parameters:
from
to
global ReadModifiedFilesMap (integer from, integer to) -> map<string, map>

Return map of files modified between given snapshots Map is recursively describing the filesystem structure; helps to build Tree widget contents

Parameters:
from
to
global GetSnapshotPath (integer snapshot_num) -> string

Return the path to given snapshot

Parameters:
snapshot_num
global GetFileFullPath (string file) -> string

Return the full path to the given file from currently selected configuration (subvolume)

Parameters:
file path, relatively to current config GetFileFullPath ("/testfile.txt") -> /abc/testfile.txt for /abc subvolume
global GetFileModification (string file, integer old, integer new) -> map

Describe what was done with given file between given snapshots - when new is 0, meaning is 'current system'

Parameters:
file
old
new
global ReadSnapshots () -> boolean

Read the list of snapshots

global InitializeSnapper (string config) -> boolean

Initialize snapper agent Return true on success

Parameters:
config
global DeleteSnapshot (map args) -> boolean

Delete existing snapshot Return true on success

Parameters:
args
global ModifySnapshot (map args) -> boolean

Modify existing snapshot Return true on success

Parameters:
args
global CreateSnapshot (map args) -> boolean

Create new snapshot Return true on success

Parameters:
args
global Read () -> boolean

Read all snapper settings

Return value:
true on success
local GetFileMode (string file) -> integer

Return the given file mode as octal number

Parameters:
file
global RestoreFiles (integer snapshot_num, list<string> files) -> boolean

Copy given files from selected snapshot to current filesystem

Parameters:
snapshot_num snapshot identifier
files list of full paths to files
Return value:
success