6b13f685e
김민수
BSP 최초 추가
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
#ifndef _LINUX_NTFS_VOLUME_H
#define _LINUX_NTFS_VOLUME_H
#include <linux/rwsem.h>
#include <linux/uidgid.h>
#include "types.h"
#include "layout.h"
typedef struct {
struct super_block *sb;
LCN nr_blocks;
unsigned long flags;
kuid_t uid;
kgid_t gid;
umode_t fmask;
umode_t dmask;
u8 mft_zone_multiplier;
u8 on_errors;
u16 sector_size;
u8 sector_size_bits;
u32 cluster_size;
u32 cluster_size_mask;
u8 cluster_size_bits;
u32 mft_record_size;
u32 mft_record_size_mask;
u8 mft_record_size_bits;
u32 index_record_size;
u32 index_record_size_mask;
u8 index_record_size_bits;
LCN nr_clusters;
LCN mft_lcn;
LCN mftmirr_lcn;
u64 serial_no;
u32 upcase_len;
ntfschar *upcase;
s32 attrdef_size;
ATTR_DEF *attrdef;
#ifdef NTFS_RW
s64 mft_data_pos;
LCN mft_zone_start;
LCN mft_zone_end;
LCN mft_zone_pos;
LCN data1_zone_pos;
LCN data2_zone_pos;
#endif /* NTFS_RW */
struct inode *mft_ino;
struct inode *mftbmp_ino;
struct rw_semaphore mftbmp_lock;
#ifdef NTFS_RW
struct inode *mftmirr_ino;
int mftmirr_size;
struct inode *logfile_ino;
#endif /* NTFS_RW */
struct inode *lcnbmp_ino;
struct rw_semaphore lcnbmp_lock;
struct inode *vol_ino;
VOLUME_FLAGS vol_flags;
u8 major_ver;
u8 minor_ver;
struct inode *root_ino;
struct inode *secure_ino;
struct inode *extend_ino;
#ifdef NTFS_RW
struct inode *quota_ino;
struct inode *quota_q_ino;
struct inode *usnjrnl_ino;
struct inode *usnjrnl_max_ino;
struct inode *usnjrnl_j_ino;
#endif /* NTFS_RW */
struct nls_table *nls_map;
} ntfs_volume;
typedef enum {
NV_Errors,
NV_ShowSystemFiles,
NV_CaseSensitive,
NV_LogFileEmpty,
NV_QuotaOutOfDate,
NV_UsnJrnlStamped,
NV_SparseEnabled,
} ntfs_volume_flags;
#define DEFINE_NVOL_BIT_OPS(flag) \
static inline int NVol##flag(ntfs_volume *vol) \
{ \
return test_bit(NV_##flag, &(vol)->flags); \
} \
static inline void NVolSet##flag(ntfs_volume *vol) \
{ \
set_bit(NV_##flag, &(vol)->flags); \
} \
static inline void NVolClear##flag(ntfs_volume *vol) \
{ \
clear_bit(NV_##flag, &(vol)->flags); \
}
DEFINE_NVOL_BIT_OPS(Errors)
DEFINE_NVOL_BIT_OPS(ShowSystemFiles)
DEFINE_NVOL_BIT_OPS(CaseSensitive)
DEFINE_NVOL_BIT_OPS(LogFileEmpty)
DEFINE_NVOL_BIT_OPS(QuotaOutOfDate)
DEFINE_NVOL_BIT_OPS(UsnJrnlStamped)
DEFINE_NVOL_BIT_OPS(SparseEnabled)
#endif /* _LINUX_NTFS_VOLUME_H */
|