#
# Dependencies of this sub-command
#
spool_file_exists_depends()
{
	echo ""
}

#
# Sub-command: systest::gfarm2fs::spool_file_exists
#
subcmd_spool_file_exists()
{
	log_debug "subcmd_spool_file_exists"

	check_argc $# 1
	check_hostid gfsd $HOSTID
	exec_remote_host_agent $HOSTID root systest::gfarm2fs::spool_file_exists "$@"
	[ $? -eq 0 ] || exit 1

	log_debug "end subcmd_spool_file_exists"
}

#
# Dependencies of this sub-command agent
#
spool_file_exists_agent_depends()
{
	echo ""
}

#
# Sub-command: systest::gfarm2fs::spool_file_exists
# check whether spool file exists
#
subcmd_spool_file_exists_agent()
{
	log_debug "subcmd_spool_file_exists_agent"

	set_gfsd_params
	[ ! -f $SPOOL_DIR/$1 ] && exit 1

	log_debug "end subcmd_spool_file_exists_agent"
}
