wangnijie860304
Pilgrim

Get error when calculate disk space in pre-install phase

I meeting the same problem. After I use the following code during pre-install phase, I get error result of available disk space by function getAvailableDiskSpace(), this is only happened on NFS disk, not local disk. It is werid, I don't know what cause it.

InstallerResources resource = (InstallerResources)ip.getService(InstallerResources.class);
long spaceAvailable = resource.getAvailableDiskSpace(); //get wrong value: -1


But I can get correct value of available disk space by InstallAnywhere variable $FREE_DISK_SPACE_BYTES$ during install phase. And, we can't get value of this variable during pre-install phase.


Now, The problem is I want this value during pre-install phase. How can i achieve this? Does anyone have any ideas? Any hint will be appreaciated. Thanks.
Labels (1)
0 Kudos
1 Reply
pollostar
Pilgrim

Re: Get error when calculate disk space in pre-install phase

Which kind of error you get?
0 Kudos