home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 December / CHIPNET Aralık 1997.iso / linux / redhat / misc / src / install / fs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-11  |  1.5 KB  |  50 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 doPwMount(char * dev, char * where, char * fs, int rdonly, int istty,
  34.         char * acct, char * pw);
  35. int umountFilesystems(struct fstab * fstab);
  36. int writeFstab(struct fstab * fstab);
  37. int readMountTable(struct partitionTable table, struct fstab * finalFstab);
  38. int addFstabEntry(struct fstab * fstab, struct fstabEntry entry);
  39. void freeFstab(struct fstab fstab);
  40. struct fstab copyFstab(struct fstab * fstab);
  41. newtComponent addPartitionListbox(struct partitionTable table,
  42.                      newtComponent form, int left, int top, 
  43.                      int height, int type, 
  44.                      int (*filter)(struct partition * part),
  45.                      int * numItems);
  46.  
  47. extern int canEnableSwap;
  48.  
  49. #endif
  50.