Forget about all of this, I'm going to simplify the design. I have in mind to make the following changes. 1. Don't just change $1 from being the path of a block device to being a reserved word. a. Instead append an additional parameter. 2. Use subvolume id, instead of names.