nfsv4 support, add -o vers=4 to mount commands if site.useNFSv4onAIX is set

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10868 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2011-10-24 11:14:13 +00:00
parent 840293e273
commit 68dd5e36bd

View File

@ -1980,7 +1980,16 @@ sub updateAIXsoftware
# make sure pkg dir is exported
if (scalar(@pkglist)) {
my $ecmd = qq~exportfs -i $pkgdir~;
my $ecmd;
my @nfsv4 = xCAT::Utils->get_site_attribute("useNFSv4onAIX");
if ($nfsv4[0] && ($nfsv4[0] =~ /1|Yes|yes|YES|Y|y/))
{
$ecmd = qq~exportfs -i -o vers=4 $pkgdir~;
}
else
{
$ecmd = qq~exportfs -i $pkgdir~;
}
my $output = xCAT::Utils->runcmd("$ecmd", -1);
if ($::RUNCMD_RC != 0)
{