home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / disk-man / linux-fl.000 / linux-fl / linux-floppies / building-blocks / SETinode_density < prev    next >
Encoding:
Text File  |  1996-04-04  |  849 b   |  27 lines

  1. #!/bin/sh
  2.   
  3. dialog \
  4. --title "SELECT INODE DENSITY" \
  5. --menu "Ext2 file system defaults to one inode per 4096 bytes \
  6. of drive space. EACH FILE requires ONE INODE. Therefore, \
  7. if you're going to have many small files on your drive, \
  8. you need more inodes (--> choose smaller value -- '2048' or '1024'). \
  9. However, more inodes also means slower file access. \
  10. If your files are not going to be small, then just hit return \
  11. to accept the default of 4096 bytes." \ 18 65 3 \
  12. "4096" "1 inode per 4096 bytes. (default)" \
  13. "2048" "1 inode per 2048 bytes." \
  14. "1024" "1 inode per 1024 bytes." \
  15. 2> /tmp/Finode_density
  16.     
  17. INODE_DENSITY="`cat /tmp/Finode_density`"
  18. rm -f /tmp/Finode_density
  19.  
  20. if [ ! "$INODE_DENSITY" = "2048" -a ! "$INODE_DENSITY" = "1024" ]; then
  21.    INODE_DENSITY=4096
  22. fi
  23.    
  24. echo "Inode density: 1 inode per $INODE_DENSITY bytes."
  25.  
  26.    
  27.