home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 13 / CDA13.ISO / MISC / SRC / INSTALL / FS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-23  |  1.3 KB  |  46 lines

  1. #ifndef H_MTAB
  2. #define H_MTAB
  3.  
  4. #include "hd.h"
  5. #include "net.h"
  6. #include "newt.h"
  7.  
  8. struct fstabEntry {
  9.     char * device;        /* malloced! */
  10.     char * netHost;        /* malloced! */
  11.     char * netPath;        /* malloced! */
  12.     char * mntpoint;        /* malloced! */
  13.     char * tagName;
  14.     int size;
  15.     enum partitionTypes type;
  16.     int isMounted;
  17.     int doFormat;
  18. }; 
  19.  
  20. struct fstab {
  21.     struct fstabEntry * entries;
  22.     int numEntries;
  23. };
  24.  
  25. int setupMountTable(struct partitionTable table, struct fstab * finalFstab,
  26.             struct netInterface * intf, struct netConfig * netc,
  27.             struct driversLoaded ** dl);
  28. int queryFormatFilesystems(struct fstab * fstab);
  29. int formatFilesystems(struct fstab * fstab);
  30. int activeSwapSpace(struct partitionTable * table, struct fstab * fstab);
  31. int mountFilesystems(struct fstab * fstab);
  32. int doMount(char * dev, char * where, char * fs, int rdonly, int istty);
  33. int umountFilesystems(struct fstab * fstab);
  34. int writeFstab(struct fstab * fstab);
  35. int readMountTable(struct partitionTable table, struct fstab * finalFstab);
  36. int addFstabEntry(struct fstab * fstab, struct fstabEntry entry);
  37. void freeFstab(struct fstab fstab);
  38. struct fstab copyFstab(struct fstab * fstab);
  39. newtComponent addPartitionListbox(struct partitionTable table,
  40.                      newtComponent form, int left, int top, 
  41.                      int height, int type);
  42.  
  43. extern int canEnableSwap;
  44.  
  45. #endif
  46.