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)
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>
27 struct extfs_entry
*next_in_dir
;
28 struct extfs_entry
*dir
;
30 struct extfs_inode
*inode
;
38 struct extfs_entry
*first_in_subdir
; /* only used if this is a directory */
39 struct extfs_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 extfs_archive
*archive
; /* And this is an archive structure */
56 struct extfs_archive
{
60 struct stat extfsstat
;
61 struct stat local_stat
;
64 ino_t __inode_counter
;
65 struct extfs_entry
*root_entry
;
66 struct extfs_entry
*current_dir
;
67 struct extfs_archive
*next
;
70 void extfs_init (void);
71 void extfs_fill_names (void (*func
)(char *));
72 int extfs_prefix_to_type (char *path
);
73 char *extfs_get_prefix (int fstype
);
74 char *extfs_analysis (char *path
, char **arc_name
, int *fstype
, int is_dir
);
75 void extfs_run (char *path
);
76 void extfs_done (void);