File: setup-storage-overview.txt

package info (click to toggle)
fai 4.3.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 1,740 kB
  • sloc: perl: 5,115; sh: 4,272; makefile: 157
file content (72 lines) | stat: -rw-r--r-- 1,333 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
july/2014

Chronological order of subroutine calls and their respective library
file (commands are listed only once, if they are called repeatedly):

	  setup-storage
		|
		|
┌---------------|
|		|
|	     in_path
|	     run_parser
Parser.pm    check_config
|	     in_path
|		|
└---------------|
		|	        
┌---------------|
|		|
Volumes.pm   get_current_disks
|	     get_current_lvm
|	     get_current_raid
|	     propagate_and_check_preserve
|		|
└---------------|
		|	        
┌---------------|
|		|
Sizes.pm   compute_partition_sizes
|	   compute_lv_sizes
|		|
└---------------|
		|	        
┌---------------|
|		|
Commands.pm build_disk_commands
|	    buiild_raid_commands
|	    buiild_cryptsetup_commands
|	    order_commands
|		|
└---------------|
		|	        
┌---------------|
|		|
Exec.pm   execute_command
|		|
└---------------|
		|	        
┌---------------|
|		|
Fstab.pm   generate_fstab
|		|
└---------------|
		|
		v



important data structures:

%FAI::commands : initialized in Init.pm
    Holds all commands as well as their dependencies and
    post-execution status. &FAI::order_commands is used on it to set
    the correct order of commands and resolve the dependencies.

    Commands are added to the structure by using the
    FAI::push_command(COMMAND, PRE, POST) subroutine.