extfs.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* Declarations for the extfs.
  2. Copyright (C) 1995 The Free Software Foundation
  3. Written by: 1995 Jakub Jelinek
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; see the file COPYING. If not, write to
  14. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  15. #include <sys/types.h>
  16. struct inode;
  17. struct entry {
  18. int has_changed;
  19. struct entry *next_in_dir;
  20. struct entry *dir;
  21. char *name;
  22. struct inode *inode;
  23. };
  24. struct archive;
  25. struct inode {
  26. int has_changed;
  27. nlink_t nlink;
  28. struct entry *first_in_subdir; /* only used if this is a directory */
  29. struct entry *last_in_subdir;
  30. ino_t inode; /* This is inode # */
  31. dev_t dev; /* This is an internal identification of the extfs archive */
  32. struct archive *archive; /* And this is an archive structure */
  33. dev_t rdev;
  34. umode_t mode;
  35. uid_t uid;
  36. gid_t gid;
  37. int size;
  38. time_t mtime;
  39. char linkflag;
  40. char *linkname;
  41. time_t atime;
  42. time_t ctime;
  43. char *local_filename;
  44. };
  45. struct archive {
  46. int fstype;
  47. char *name;
  48. char *local_name;
  49. struct stat extfsstat;
  50. struct stat local_stat;
  51. dev_t rdev;
  52. int fd_usage;
  53. ino_t __inode_counter;
  54. struct entry *root_entry;
  55. struct entry *current_dir;
  56. struct archive *next;
  57. };
  58. typedef struct archive extfs_archive; /* Do _not_ use this inside extfs.c */