(command.CommandList children: [ (command.Simple blame_tok: <.> more_env: [] words: [ {<.>} { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <dirname> more_env: [] words: [{<dirname>} {($ Id.VSub_Number 0)}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) <'/conf.sh'> } ] redirects: [] do_fork: T ) (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {<1..1>}] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'ddbs='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'ddbs='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'ddbs='> name:ddbs) op: assign_op.Equal rhs: {<2048>} ) ] redirects: [] ) (command.AndOr children: [ (command.ShAssignment left: <Id.Lit_VarLike 'm1='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'm1='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'm1='> name:m1) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <mktemp> more_env: [] words: [{<mktemp>} {($ Id.VSub_DollarName base) <.XXXXXX>}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.AndOr children: [ (command.ShAssignment left: <Id.Lit_VarLike 'm2='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'm2='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'm2='> name:m2) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <mktemp> more_env: [] words: [{<mktemp>} {($ Id.VSub_DollarName base) <.XXXXXX>}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.AndOr children: [ (command.ShAssignment left: <Id.Lit_VarLike 'm3='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'm3='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'm3='> name:m3) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_Backtick '`'> child: (command.Simple blame_tok: <mktemp> more_env: [] words: [{<mktemp>} {($ Id.VSub_DollarName base) <.XXXXXX>}] redirects: [] do_fork: T ) right: <Id.Backtick_Right '`'> ) } ) ] redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> <'/dev/zero'>} {<Id.Lit_VarLike 'of='> ($ Id.VSub_DollarName m1)} {<Id.Lit_VarLike 'bs='> ($ Id.VSub_DollarName ddbs)} {<Id.Lit_VarLike 'count='> <1024>} ] redirects: [ (Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>}) (Redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>}) ] do_fork: T ) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> <'/dev/zero'>} {<Id.Lit_VarLike 'of='> ($ Id.VSub_DollarName m2)} {<Id.Lit_VarLike 'bs='> ($ Id.VSub_DollarName ddbs)} {<Id.Lit_VarLike 'count='> <1024>} ] redirects: [ (Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>}) (Redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>}) ] do_fork: T ) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> <'/dev/zero'>} {<Id.Lit_VarLike 'of='> ($ Id.VSub_DollarName m3)} {<Id.Lit_VarLike 'bs='> ($ Id.VSub_DollarName ddbs)} {<Id.Lit_VarLike 'count='> <1024>} ] redirects: [ (Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>}) (Redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>}) ] do_fork: T ) (command.AndOr children: [ (command.ShAssignment left: <Id.Lit_VarLike 'us0='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'us0='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'us0='> name:us0) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <attach_md> more_env: [] words: [{<attach_md>} {<-t>} {<vnode>} {<-f>} {($ Id.VSub_DollarName m1)}] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) } ) ] redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.AndOr children: [ (command.ShAssignment left: <Id.Lit_VarLike 'us1='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'us1='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'us1='> name:us1) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <attach_md> more_env: [] words: [{<attach_md>} {<-t>} {<vnode>} {<-f>} {($ Id.VSub_DollarName m2)}] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) } ) ] redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.AndOr children: [ (command.ShAssignment left: <Id.Lit_VarLike 'us2='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'us2='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'us2='> name:us2) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <attach_md> more_env: [] words: [{<attach_md>} {<-t>} {<vnode>} {<-f>} {($ Id.VSub_DollarName m3)}] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) } ) ] redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.AndOr children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [ {<gmirror>} {<label>} {($ Id.VSub_DollarName name)} {<'/dev/'> ($ Id.VSub_DollarName us0)} {<'/dev/'> ($ Id.VSub_DollarName us1)} ] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.Simple blame_tok:<devwait> more_env:[] words:[{<devwait>}] redirects:[] do_fork:T) (command.AndOr children: [ (command.Simple blame_tok: <sysctl> more_env: [] words: [ {<sysctl>} {<debug.fail_point.g_mirror_metadata_write> <Id.Lit_Equals '='> (SQ <'1*return(5)'>)} ] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> <'/dev/random'>} {<Id.Lit_VarLike 'of='> <'/dev/mirror/'> ($ Id.VSub_DollarName name)} {<Id.Lit_VarLike 'bs='> ($ Id.VSub_DollarName ddbs)} {<Id.Lit_VarLike 'count='> <1>} ] redirects: [ (Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>}) (Redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>}) ] do_fork: T ) (command.AndOr children: [ (command.Simple blame_tok: <sysctl> more_env: [] words: [{<sysctl>} {<debug.fail_point.g_mirror_metadata_write> <Id.Lit_Equals '='> (SQ <off>)}] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.AndOr children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [{<gmirror>} {<forget>} {($ Id.VSub_DollarName name)}] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.AndOr children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [ {<gmirror>} {<insert>} {($ Id.VSub_DollarName name)} {<'/dev/'> ($ Id.VSub_DollarName us2)} ] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [{<gmirror>} {<status>} {($ Id.VSub_DollarName name)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <grep> more_env: [] words: [{<grep>} {<ACTIVE>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <wc> more_env: [] words: [{<wc>} {<-l>}] redirects: [] do_fork: T ) ] ops: [<Id.Op_Pipe _> <Id.Op_Pipe _>] ) right: <Id.Eof_RParen _> ) } {<-ne>} {<2>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.Simple blame_tok: <sleep> more_env: [] words: [{<sleep>} {<1>}] redirects: [] do_fork: T ) ] right: <Id.KW_Done done> ) redirects: [] ) (command.AndOr children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [{<gmirror>} {<stop>} {($ Id.VSub_DollarName name)}] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.AndOr children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [ {<gmirror>} {<activate>} {($ Id.VSub_DollarName name)} {<'/dev/'> ($ Id.VSub_DollarName us0)} {<'/dev/'> ($ Id.VSub_DollarName us1)} ] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.Simple blame_tok:<devwait> more_env:[] words:[{<devwait>}] redirects:[] do_fork:T) (command.Simple blame_tok: <dd> more_env: [] words: [ {<dd>} {<Id.Lit_VarLike 'if='> <'/dev/random'>} {<Id.Lit_VarLike 'of='> <'/dev/mirror/'> ($ Id.VSub_DollarName name)} {<Id.Lit_VarLike 'bs='> ($ Id.VSub_DollarName ddbs)} {<Id.Lit_VarLike 'count='> <1>} ] redirects: [ (Redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>}) (Redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>}) ] do_fork: T ) (command.AndOr children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [ {<gmirror>} {<activate>} {($ Id.VSub_DollarName name)} {<'/dev/'> ($ Id.VSub_DollarName us2)} ] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <Id.Lit_LBracket '['> more_env: [] words: [ {<Id.Lit_LBracket '['>} { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [{<gmirror>} {<status>} {($ Id.VSub_DollarName name)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <grep> more_env: [] words: [{<grep>} {<ACTIVE>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <wc> more_env: [] words: [{<wc>} {<-l>}] redirects: [] do_fork: T ) ] ops: [<Id.Op_Pipe _> <Id.Op_Pipe _>] ) right: <Id.Eof_RParen _> ) } {<-ne>} {<2>} {<Id.Lit_RBracket ']'>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.Simple blame_tok: <sleep> more_env: [] words: [{<sleep>} {<1>}] redirects: [] do_fork: T ) ] right: <Id.KW_Done done> ) redirects: [] ) (command.AndOr children: [ (command.Simple blame_tok: <gmirror> more_env: [] words: [{<gmirror>} {<destroy>} {($ Id.VSub_DollarName name)}] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Exit exit> arg_word:{<1>}) ] ops: [<Id.Op_DPipe _>] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.Simple blame_tok: <cmp> more_env: [] words: [{<cmp>} {<-s>} {($ Id.VSub_DollarName m1)} {($ Id.VSub_DollarName m3)}] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ <'ok 1'>)}] redirects: [] do_fork: T ) ] spids: [489 500] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <echo> more_env: [] words: [{<echo>} {(DQ <'not ok 1'>)}] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <rm> more_env: [] words: [ {<rm>} {<-f>} {($ Id.VSub_DollarName m1)} {($ Id.VSub_DollarName m2)} {($ Id.VSub_DollarName m3)} ] redirects: [] do_fork: T ) ] )