Lurker News

Comments (87) 26 threads

Show all comments

Showing thread 14 of 26

spydum1 reply#
I'm missing something, what actually "executes" the command here echo "$2" > "$btrfs_path/$uuid/$uuid.cmd"

Is something watching for .cmd? Is this some behavior of util-linux (for which, my few seconds couldn't find solid documentation on)?

inopinatus1 reply#
If my dry read of the code is correct, that line is for the "bocker ps" routine to be able to print the command later.

The run command itself is executed next, inside of ip netns exec.

spydum#
Ahhh, no.. I was looking at line 57 and somehow missed the actual call to $2 on 59. Clear as a bell now