move mkfs-dependant option "-F" from tm_mkimage.sh to fs/mkfs-script
|Assignee:||Jaime Melis||% Done:|
|Category:||Drivers - Auth|
|Target version:||Release 3.2|
|Affected Versions:||OpenNebula 3.2|
this is just a minimal one: I wanted to use the xfs filesystem on datablock-disks, and so I added a new IM-driver set of scripts copied from /var/lib/one/remotes/image/fs/ and added a new case-esac branch for xfs in the script mkfs:
"xfs") OPTS="" ;;
But the creation of the datablock failed with the message "mkfs.xfs: invalid option -- 'F'". The reason for this is that this option is contained in the mkfs command call in the tm_mkimage.sh scripts:
exec_and_log "$MKFS -t $FSTYPE -F $DST_PATH"
But as the option -F is filesystem dependent it should probably be moved into the different mkfs-branches of the fs/mkfs script.