btrfs-progs: properly set up ioctl arguments
authorDavid Sterba <dsterba@suse.cz>
Fri, 12 Jun 2015 12:36:51 +0000 (14:36 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 12 Jun 2015 14:44:48 +0000 (16:44 +0200)
commit6a039e5063fc96cc72a0a0b2bdc97403fb080de1
tree162acdd186f1c1bbdba875ebf470f33a67f691e1
parent2e151027d245a762326dac8e814db9fc59113454
btrfs-progs: properly set up ioctl arguments

At some places we do not clear the whole ioctl structure and could
pass garbage to kernel. Zero the ioctl vol_args and use a helper for
copying the path.

Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-device.c
cmds-filesystem.c
cmds-subvolume.c
utils.c