
functions
files
intro
|
|
YaST OS Repair. Automatic error detection & repair tool for Linux.
|
OSRPtbl.ycp
|
YaST OS Repair. Automatic error detection & repair tool for Linux.
|
|
|
Imports
- Label
- Mode
- OSRCommon
- OSRExecute
- OSRFloppy
- OSRPopup
- Popup
- Report
- Storage
- StorageDevices
Includes
- partitioning/partition_defines.ycp
Global Functions
Local Variables
Local Functions
|
|
|
local repair_methods -> map
|
|
All repair methods
The harddisk name. e.g.: /dev/hda
local target_scrpath -> path
|
|
The path of the harddisk (for fdisk calls). e.g.: .dev.hda.
local backup_dev_filenames -> map
|
|
At the first call of the OSRPtbl module the constructor saves all
mbr's to the YaST"2.tmp Directory. The names of the randomly
created mbr files are stored in the map backup_dev_filenames.
local backup_mbr_status -> boolean
|
|
backup_mbr_status is true, if all mbr's are successfully stored
to the tmp directory.
local gpart_expert_options -> string
|
|
Expert options for gpart
local floppy_help_text () -> string
|
|
Help text for the floppy repair method.
local gpart_help_text () -> string
|
|
Help for gpart
local original_help_text () -> string
|
|
Help text for restoring orginal mbr's
local SavePtbl () -> void
|
|
Save all mbr's to tmp directory and saves the path names
in the map backup_dev_filenames.
local CheckRestoredPtbl (string target, path target_scrpath) -> boolean
|
|
Check reparired mbr.
- Parameters:
local build_file_name (string key) -> string
|
|
Build the file name for reading partition list from floppy.
- Parameters:
local read_part_list_from_floppy (string target) -> list<map>
|
|
Need mounted floppy
- Parameters:
local FoundPtblDialog (list<map> partitions, string dev, string repair_tool, boolean whole_mbr) -> list<map>
|
|
Show
- Parameters:
partitions |
|
dev |
|
repair_tool |
|
whole_mbr |
|
local fdisk_call (path target_scrpath, list<map> torecover) -> boolean
|
|
Call fdisk
- Parameters:
local restore_from_floppy () -> symbol
|
|
Restore lost mbr with a backup from floppy.
local gpart_cat_fsid (string line) -> integer
|
|
Cat the fsid from a line.
- Parameters:
local gpart_cat_geometry (string line) -> map
|
|
Cat the geometry from a line.
- Parameters:
local expert_restore_with_gpart () -> symbol
|
|
Dialog with expert gpart options.
local partition_info (map part, string dev) -> string
|
|
return partition information (to be shown to user)
- Parameters:
local ComparePtblDialog (map compared, string target, string repair_tool) -> list<map>
|
|
Compare an existing partition table with the gpart output
- Parameters:
compared |
|
target |
|
repair_tool |
|
global RestoreWithGpart () -> symbol
|
|
Restoring a partition tables with gpart.
local write_original (list<string> to_reset, boolean whole_mbr) -> boolean
|
|
Restore saved mbr.
- Parameters:
local restore_original () -> symbol
|
|
Restore saved mbr.
global WritePartitionsInfo2Floppy (string key, list parts) -> boolean
|
|
Write partition info of given disk to floppy (needs mounted floppy)
- Parameters:
global MainPtblRepairDialog (string t_target, path t_target_scrpath) -> symbol
|
|
Main Dialog for repairing deleted/not valid partition tables.
@parm t_target the target e.g.: /dev/hda
@parm t_target_scrpath the souce path of the target .dev.hda
- Parameters:
t_target |
|
t_target_scrpath |
|
|