Subversion Repositories shark

Rev

Rev 80 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/**
22
 ------------
80 pj 23
 CVS :        $Id: mount.h,v 1.2 2003-03-13 13:37:58 pj Exp $
2 pj 24
 
25
 File:        $File$
80 pj 26
 Revision:    $Revision: 1.2 $
27
 Last update: $Date: 2003-03-13 13:37:58 $
2 pj 28
 ------------
29
**/
30
 
31
/*
32
 * Copyright (C) 2000 Massimiliano Giorgi
33
 *
34
 * This program is free software; you can redistribute it and/or modify
35
 * it under the terms of the GNU General Public License as published by
36
 * the Free Software Foundation; either version 2 of the License, or
37
 * (at your option) any later version.
38
 *
39
 * This program is distributed in the hope that it will be useful,
40
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
41
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
42
 * GNU General Public License for more details.
43
 *
44
 * You should have received a copy of the GNU General Public License
45
 * along with this program; if not, write to the Free Software
46
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
47
 *
48
 */
49
/*
50
 *
51
 *
52
 *
53
 *
54
 */
55
 
56
#ifndef __FS_MOUNT_H__
57
#define __FS_MOUNT_H__
58
 
59
#include <fs/types.h>
60
#include <fs/fsconf.h>
80 pj 61
#include "ll/sys/cdefs.h"
2 pj 62
 
80 pj 63
__BEGIN_DECLS
64
 
2 pj 65
/*
66
 *
67
 * SPECIFIC FILESYSTEM PART
68
 *
69
 */
70
 
71
#define mount_std_parms(obj) {(obj).flags=0;}
72
 
73
/*
74
 * msdos filesystem
75
 */
76
 
77
#ifdef MSDOS_FILESYSTEM
78
 
79
#define MSDOS_FLAG_ONORCASE 0x01
80
 
81
struct msdosfs_parms {
82
  __uint32_t flags;
83
};
84
 
85
#define msdosfs_std_parms(o) {mount_std_parms(o);(o).x.msdos.flags=0;}
86
 
87
#else
88
 
89
struct msdosfs_parms {
90
  __uint32_t dummy;
91
};
92
 
93
#endif
94
 
95
/*
96
 * iso9660 filesystem
97
 */
98
 
99
#ifdef ISO9660_FILESYSTEM
100
 
101
struct iso9660fs_parms {
102
  __uint32_t dummy;
103
};
104
 
105
#define iso9660fs_std_parms(o) {mount_std_parms(o);(o).x.iso9660.dummy=0;}
106
 
107
#else
108
 
109
struct iso9660fs_parms {
110
  __uint32_t dummy;
111
};
112
 
113
#endif
114
 
115
/*
116
 *
117
 * GENERAL FILESYSTEM PART
118
 *
119
 */
120
 
121
#define MOUNT_FLAG_RW 0x01
122
 
123
struct mount_opts {
124
  __uint32_t flags;
125
  union {
126
    struct msdosfs_parms   msdos;
127
    struct iso9660fs_parms iso9660;
128
  } x;
129
};
130
 
131
typedef struct mount_opts MOUNT_PARMS;
132
 
80 pj 133
__END_DECLS
2 pj 134
#endif