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