(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:TMP) op: Equal rhs: {(/tmp/) ($ VSub_Dollar '$$') (.)} spids: [7] ) ] spids: [7] ) (C {(set)} {(-e)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:MD) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [(C {(mdconfig)} {(-a)} {(-t)} {(malloc)} {(-s)} {(2m)})] ) left_token: <Left_Backtick '`'> spids: [17 29] ) } spids: [16] ) ] spids: [16] ) (C {(trap)} { (DQ ('exec 7</dev/null; rm -f ') (${ VSub_Name TMP) ('* ; mdconfig -d -u ') (${ VSub_Name MD)) } {(EXIT)} {(INT)} {(TERM)} ) (C {(./sunlabel)} {(-r)} {(-w)} {($ VSub_Name '$MD')} {(auto)}) (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (/dev/) ($ VSub_Name '$MD')} {(Lit_VarLike 'of=') (${ VSub_Name TMP) (i0)} {(Lit_VarLike 'count=') (16)} ] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[77]) (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[81]) ] ) (SimpleCommand words: [{(./sunlabel)} {($ VSub_Name '$MD')}] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(${ VSub_Name TMP) (l0)} spids:[88])] ) (SimpleCommand words: [ {(sed)} {(SQ <'\n'> <'/ c:/{\n'> <'p\n'> <'s/c:/a:/\n'> <'s/3969/1024/\n'> <'}\n'>)} {(${ VSub_Name TMP) (l0)} ] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(${ VSub_Name TMP) (l1)} spids:[112])] ) (C {(./sunlabel)} {(-R)} {($ VSub_Name '$MD')} {(${ VSub_Name TMP) (l1)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(-c)} {(/dev/) (${ VSub_Name MD) (a)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Created a: partition'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[156])] ) ] spids: [-1 147] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Did not create a: partition'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[168])] ) (C {(exit)} {(2)}) ] spids: [159 176] ) (SimpleCommand words: [{(true)}] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/) (${ VSub_Name MD)} spids:[185])] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(-c)} {(/dev/) (${ VSub_Name MD) (a)} {(Lit_Other ']')}) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Recreated a: partition after spoilage'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[217])] ) ] spids: [-1 208] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Did not recreate a: partition after spoilage'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[229])] ) (C {(exit)} {(2)}) ] spids: [220 237] ) (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (/dev/) ($ VSub_Name '$MD')} {(Lit_VarLike 'of=') (${ VSub_Name TMP) (i1)} {(Lit_VarLike 'count=') (16)} ] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[255]) (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[259]) ] ) (SimpleCommand words: [ {(sed)} {(SQ <'\n'> <'/ c:/{\n'> <'p\n'> <'s/c:/a:/\n'> <'s/3969/2048/\n'> <'}\n'>)} {(${ VSub_Name TMP) (l0)} ] redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(${ VSub_Name TMP) (l2)} spids:[278])] ) (C {(./sunlabel)} {(-R)} {($ VSub_Name '$MD')} {(${ VSub_Name TMP) (l2)}) (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (/dev/) ($ VSub_Name '$MD')} {(Lit_VarLike 'of=') (${ VSub_Name TMP) (i2)} {(Lit_VarLike 'count=') (16)} ] redirects: [ (Redir op_id:Redir_Great fd:-1 arg_word:{(/dev/null)} spids:[312]) (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[316]) ] ) (SimpleCommand words: [{(exec)}] redirects: [(Redir op_id:Redir_Less fd:7 arg_word:{(/dev/) (${ VSub_Name MD) (a)} spids:[322])] ) (ForEach iter_name: t iter_words: [{(a)} {(c)}] do_arg_iter: False body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i2)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) ($ VSub_Name '$t')} ] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [361] ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [ {(echo)} { (DQ ('PASS: Could rewrite same label to ...') ($ VSub_Name '$t') (' while ...a open') ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[377])] ) ] spids: [-1 366] ) ] else_action: [ (SimpleCommand words: [ {(echo)} { (DQ ('FAIL: Could not rewrite same label to ...') ($ VSub_Name '$t') (' while ...a open') ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[392])] ) (C {(exit)} {(2)}) ] spids: [381 401] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i1)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) ($ VSub_Name '$t')} ] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [422] ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [ {(echo)} { (DQ ('FAIL: Could label with smaller ...a to ...') ($ VSub_Name '$t') (' while ...a open') ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[438])] ) (C {(exit)} {(2)}) ] spids: [-1 427] ) ] else_action: [ (SimpleCommand words: [ {(echo)} { (DQ ('PASS: Could not label with smaller ...a to ...') ($ VSub_Name '$t') (' while ...a open') ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[458])] ) ] spids: [447 462] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i0)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) ($ VSub_Name '$t')} ] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [483] ) ] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [ {(echo)} { (DQ ('FAIL: Could write label missing ...a to ...') ($ VSub_Name '$t') (' while ...a open') ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[499])] ) (C {(exit)} {(2)}) ] spids: [-1 488] ) ] else_action: [ (SimpleCommand words: [ {(echo)} { (DQ ('PASS: Could not write label missing ...a to ...') ($ VSub_Name '$t') (' while ...a open') ) } ] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[519])] ) ] spids: [508 523] ) ] spids: [341 525] ) spids: [336 -1] ) (SimpleCommand words: [{(exec)}] redirects: [(Redir op_id:Redir_Less fd:7 arg_word:{(/dev/null)} spids:[530])] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i0)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) (c)} ] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[552])] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could write missing ...a label to ...c'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[566])] ) ] spids: [-1 557] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Could not write missing ...a label to ...c'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[578])] ) (C {(exit)} {(2)}) ] spids: [569 586] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i2)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) (c)} ] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[606])] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could write large ...a label to ...c'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[620])] ) ] spids: [-1 611] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Could not write large ...a label to ...c'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[632])] ) (C {(exit)} {(2)}) ] spids: [623 640] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i1)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) (c)} ] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[660])] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could write small ...a label to ...c'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[674])] ) ] spids: [-1 665] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Could not write small ...a label to ...c'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[686])] ) (C {(exit)} {(2)}) ] spids: [677 694] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i2)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) (a)} ] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[714])] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could increase size of ...a by writing to ...a'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[728])] ) ] spids: [-1 719] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Could not increase size of ...a by writing to ...a'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[740])] ) (C {(exit)} {(2)}) ] spids: [731 748] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i1)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) (a)} ] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[768])] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Could decrease size of ...a by writing to ...a'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[782])] ) (C {(exit)} {(2)}) ] spids: [-1 773] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could not decrease size of ...a by writing to ...a'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[799])] ) ] spids: [790 802] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i0)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) (a)} ] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[822])] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Could delete ...a by writing to ...a'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[836])] ) (C {(exit)} {(2)}) ] spids: [-1 827] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could not delete ...a by writing to ...a'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[853])] ) ] spids: [844 856] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(./sunlabel)} {(-B)} {(-b)} {(${ VSub_Name TMP) (i0)} {(${ VSub_Name MD)}) terminator: <Op_Semi ';'> ) ] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-c)} {(/dev/) (${ VSub_Name MD) (a)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAILED: Writing bootcode killed ...a'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[908])] ) (C {(exit)} {(2)}) ] spids: [-1 899] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could write bootcode while closed'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[926])] ) ] spids: [917 930] ) ] spids: [-1 878] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAILED: Could not write bootcode while closed'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[941])] ) (C {(exit)} {(2)}) ] spids: [932 949] ) (SimpleCommand words: [{(exec)}] redirects: [(Redir op_id:Redir_Great fd:7 arg_word:{(/dev/) (${ VSub_Name MD) (c)} spids:[954])] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(ktrace)} {(./sunlabel)} {(-B)} {(-b)} {(${ VSub_Name TMP) (i0)} {(${ VSub_Name MD)}) terminator: <Op_Semi ';'> ) ] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-c)} {(/dev/) (${ VSub_Name MD) (a)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAILED: Writing bootcode killed ...a'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[1013])] ) (C {(exit)} {(2)}) ] spids: [-1 1004] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could write bootcode while open'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[1031])] ) ] spids: [1022 1035] ) ] spids: [-1 983] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAILED: Could not write bootcode while open'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[1046])] ) (C {(exit)} {(2)}) ] spids: [1037 1054] ) (SimpleCommand words: [{(exec)}] redirects: [(Redir op_id:Redir_Great fd:7 arg_word:{(/dev/null)} spids:[1058])] ) (If arms: [ (if_arm cond: [ (Sentence child: (SimpleCommand words: [ {(dd)} {(Lit_VarLike 'if=') (${ VSub_Name TMP) (i0)} {(Lit_VarLike 'of=') (/dev/) (${ VSub_Name MD) (c)} ] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[1080])] ) terminator: <Op_Semi ';'> ) ] action: [ (SimpleCommand words: [{(echo)} {(DQ ('PASS: Could delete ...a by writing to ...c'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[1094])] ) ] spids: [-1 1085] ) ] else_action: [ (SimpleCommand words: [{(echo)} {(DQ ('FAIL: Could not delete ...a by writing to ...c'))}] redirects: [(Redir op_id:Redir_GreatAnd fd:1 arg_word:{(2)} spids:[1106])] ) (C {(exit)} {(2)}) ] spids: [1097 1114] ) (C {(exit)} {(0)}) ] )