Use --data-dev or --data-dir for ceph-disk parameters to avoid making di...

ceph-disk parameters "--data-dev" or "--data-dir" are useful to avoid making directories such as /dev/sdc my mistake when you want to use a device that does not exist.
Can you please clarify a little more?

Are you saying you want to support devices in directories other than "/dev/" with "ceph-deploy"?  Would they just exist under "/proc/devices"?

Are you saying you want to support directories under "/dev/" with "ceph-deploy"? Removing this mistake is the main reason for this patch.

This command is calling ceph-disk with the parameters --data-dev or --data-dir. With these parameters ceph-disk does a thorough check for devices/partitions, without them ceph-disk just creates a directory if the file is not found. Since these checks are being done by ceph-disk which this function calls, and a clear error is presented to the user it seems redundant to check twice.

Maybe better it would be better if we followed the same policy as with "ceph-disk" and have override options so you can create directories under "/dev/" if users want and they can have devices under paths other than "/dev/". And only use the assumptions that people follow the LSB by default if these parameters are not set?

I personally think the duplicate error checking is redundant, and would prefer an override option. I suspect I am misunderstanding. Let me know what you think please?