#!/bin/sh

if [ -f /etc/init.d/nas/disklib ]; then
	. /etc/init.d/nas/disklib
else
	echo 'can not found include file'
	exit 1
fi

for x in $@ ; do
	if [ -b $x ]; then
		ismdmember $x
		if [ $? -eq 1 ]; then
			echo $x has been used by system raid
			# exit 1
		else
			delspace $x all
			newspace $x 1 200M
			newspace $x 2 all
			wait $!
		fi 
	fi
done
