behlendorf/lustre — pull request #3 by Prakash-Surya (2011-10-18 17:52:27+00:00)
Title: ORI-375 Populate mop with device name sooner

The tunefs.lustre command was not populating it's mkfs_opts structure
with the device name prior to calling the osd_is_lustre. Thus, when
osd_is_lustre function was called it had no chance of properly detecting
whether a given device was formatted with mkfs.lustre. This change fixes
issue by strscpy-ing the command's last argument into the mkfs_opts
structure prior to calling osd_is_lustre.

Signed-off-by: Prakash Surya
Change-Id: Idc8967bc2297e3a6ed9ebfc7613ec2f5dac73f43