YaST2 Developers Documentation: YaST OS Repair. Automatic error detection & repair tool for Linux.

YaST OS Repair. Automatic error detection & repair tool for Linux.

OSRFsck.ycp
YaST OS Repair. Automatic error detection & repair tool for Linux.

This module has an unstable interface.

Imports

  • FileSystems
  • FileUtils
  • Mode
  • OSRCommon
  • OSRExecute
  • OSRLogFile
  • OSRModuleLoading
  • OSRPopup
  • Partitions
  • Popup
  • Stage
  • Storage

Global Variables

Global Functions

Local Variables

Local Functions

local last_check_return -> integer

The last return value from a check_... call

local fsck_options -> string

Options for a repair call. Not Supported at the moment.

global not_installed_modules -> list<string>

The not loaded filesystem an lvm/raid modules.

global fs_kernel_modules -> list<string>

The loaded modules.

global fsck_fsid -> list

A list of all possible filesystem id's for fsck...

global fsck_type -> list<symbol>

A list of all possible types for a fsck ...

local check_partition -> string

The partition name witch is currently in work ( checked - repaired)

local fsck_map -> map

The find/check/repair define for all supported filesystems.

global OSRFsck () -> void

Constructor. Fill the list fsck_fsid with the date from module Partition.

global LoadAllFsModules () -> boolean

Load all needed fileystem and lvm/raid modules.

global PossiblePartitions () -> list<map>

Return a list witch contains all partitions names that can be used for a fsck.

local is_ext2fs () -> boolean

Checks if the specified check_partition is of filesystem-type ext2fs.

Return value:
True if the check_partition is ext2fs.
local is_reiserfs () -> boolean

Checks if the specified partition is of filesystem-type reiserfs.

Return value:
True if the partition is reiserfs.
local is_xfs () -> boolean

Checks if the specified partition is of filesystem-type xfs.

Return value:
True if the partition is xfs.
local is_jfs () -> boolean

Checks if the specified partition is of filesystem-type jfs.

Return value:
True if the partition is jfs.
local is_fat () -> boolean

Checks if the specified partition is of filesystem-type fat/vfat.

Return value:
True if the partition is fat/vfat.
local is_ntfs () -> boolean

Checks if the specified partition is of filesystem-type ntfs

Return value:
True if the partition is ntfs
local check_ext2fs () -> boolean

Checks the specified partition for consistency with "/sbin/e2fsck".

Return value:
The exit code returned by e2fsck is the sum of the following conditions: 0 - No errors, 1 - File system errors corrected, 2 - File system errors corrected, system should be rebooted if file system was mounted, 4 - File system errors left uncorrected, 8 - Operational error, 16 - Usage or syntax error, 128 - Shared library error.
local check_reiserfs () -> boolean

Checks the specified partition for consistency with "/sbin/reiserfsck".

local check_xfs () -> boolean

Checks the specified partition for consistency with "/sbin/xfs_db -c check".

local check_jfs () -> boolean

Checks the specified partition for consistency with "/sbin/fsck.jfs -n ".

global IsNonLinuxFileSystem (symbol fs) -> boolean

checks for filesystem type (Repair module should not touch non-linux partitions - bug #25002)

Parameters:
fs
global Check (map part) -> boolean

Test the filesystem of one partition.

Parameters:
part
global Repair (string t_check_partition, symbol used_fs) -> symbol

The main repair dialog.

Parameters:
t_check_partition the partition e.g.: /dev/hda1
used_fs the filesystem symbol
Return value:
`ok,`error,`cancel
local repair_ext2fs () -> boolean

Repair ext2/ext3 filesystem. The exit code returned by e2fsck is the sum of the following conditions: 0 - No errors, 1 - File system errors corrected, 2 - File system errors corrected, system should be rebooted if file system was mounted, 4 - File system errors left uncorrected, 8 - Operational error, 16 - Usage or syntax error, 128 - Shared library error.

local repair_reiserfs () -> boolean

Repair reiserfs filesystem.

local repair_xfs () -> boolean

Repair xfs filesystem.

local repair_jfs () -> boolean

Repair jfs filesystem.