From 22faf82624dde17e6ff1c0c657d2696f282d2291 Mon Sep 17 00:00:00 2001 From: nott Date: Thu, 10 Feb 2011 14:45:36 +0000 Subject: [PATCH] add chkFSspace before cpcosi git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8819 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 24232460c..7ef780507 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -3676,17 +3676,29 @@ sub mk_spot } # where to put it - the default is /install + my $spotloc; if ($::opt_l) { $cpcosi_cmd .= "-l $::opt_l/spot "; + $spotloc ="$::opt_l/spot"; } else { $cpcosi_cmd .= "-l $install_dir/nim/spot "; + $spotloc ="$install_dir/nim/spot"; } $cpcosi_cmd .= "$spot_name 2>&1"; + # check the file system space needed + # 800 MB for spot + my $spotsize = 800; + if (&chkFSspace($spotloc, $spotsize, $callback) != 0) + { + # error + return undef; + } + # run the cmd my $rsp; push @{$rsp->{data}}, @@ -3797,11 +3809,10 @@ sub mk_spot } # check the file system space needed - # 500 MB for spot ?? 64MB for tftpboot??? - my $spotsize = 500; + # 800 MB for spot ?? 64MB for tftpboot??? + my $spotsize = 800; if (&chkFSspace($loc, $spotsize, $callback) != 0) { - # error return undef; }