diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-09-14 23:19:37 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-09-14 23:19:37 +0400 |
commit | 964c67df640c1cee9b742aa1a6f9bd4d8d7ab2f1 (patch) | |
tree | 9d5923f6e1582782a63995fb4d08d34e8fb2b724 | |
parent | fa1fd858cab0a59d0191dd090a0d25bd3407d9c6 (diff) | |
download | live-964c67df640c1cee9b742aa1a6f9bd4d8d7ab2f1.tar.gz |
Define get_memory_size()
-rwxr-xr-x | install | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -211,6 +211,10 @@ Whould you like to continue?''', if not welcome: raise Abort('Installation canceled') +def get_memory_size(): + return os.sysconf("SC_PHYS_PAGES") * os.sysconf("SC_PAGE_SIZE") + + def get_zpool_slice(pool_name): result = [] ''' Returns slices/disks (e. g. c0t4d0s0) on which zpool exists ''' |