From e47dc2635d5b4165e832cb5ae7bd188db918ad79 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 8 Jan 2013 05:31:08 +0000 Subject: [PATCH] add the option check for litefile git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14793 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/statelite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/statelite.pm b/xCAT-server/lib/xcat/plugins/statelite.pm index 88279db7e..025f2e83d 100644 --- a/xCAT-server/lib/xcat/plugins/statelite.pm +++ b/xCAT-server/lib/xcat/plugins/statelite.pm @@ -272,7 +272,7 @@ sub process_request { my @tmp = split (/\s+/, $entry); # check the validity of the option - if ($tmp[1] !~ /^(tmpfs|persistent|localdisk|rw|link|tmpfs,rw|link,ro|link,persistent|link,con)$/) { + if ($tmp[1] !~ /^(tmpfs|persistent|localdisk|rw|ro|con|link|tmpfs,rw|link,ro|link,persistent|link,con)$/) { $callback->({error=>[qq{ $tmp[2] has invalid option. The valid options: tmpfs persistent localdisk rw link tmpfs,rw link,ro link,persistent link,con}], errorcode=>[1]}); return; }