home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / alt_os / mint / mfs6011 / source / docs / csize.doc < prev    next >
Text File  |  1995-01-20  |  1KB  |  26 lines

  1. Csize is a very simple binary configurer for Minixfs. I wrote it mainly to
  2. show the principle involved in binary configuration. You can use it to set
  3. the cache sizes or display them. To display the sizes do a
  4. csize minixfs_path_name
  5. where minixfs_path_name is the path to your minix.xfs binary. To set the
  6. sizes follow the path name with three numbers corresponding to the user
  7. system and inode cache sizes (in K). The sizes will then be changed in
  8. the minixfs binary and will be set on the next reboot.
  9.  
  10. For the curious among you the priciples of binary configuration are quite
  11. simple.
  12.  
  13. 1. The configured variable is made global and initialised to a non zero value.
  14. 2. The program is compiled with the -G option to get long symbol names and
  15. is unstripped (or at lease the symbol of the variable is left in with
  16. xstrip).
  17.  
  18. The configuring program is also relatively simple.
  19.  
  20. 1. Search for symbol name using nlist() (this is the variable name with an
  21. underscore at the start).
  22. 2. seek to the symbol value plus the binary header size.
  23. 3. Read or write the value as required.
  24.  
  25.  
  26.