xref: /onnv-gate/usr/src/cmd/ntfsprogs/cluster.h (revision 9663:ace9a2ac3683)
1*9663SMark.Logan@Sun.COM /*
2*9663SMark.Logan@Sun.COM  * cluster - Part of the Linux-NTFS project.
3*9663SMark.Logan@Sun.COM  *
4*9663SMark.Logan@Sun.COM  * Copyright (c) 2003 Richard Russon
5*9663SMark.Logan@Sun.COM  *
6*9663SMark.Logan@Sun.COM  * This function will locate the owner of any given sector or cluster range.
7*9663SMark.Logan@Sun.COM  *
8*9663SMark.Logan@Sun.COM  * This program is free software; you can redistribute it and/or modify
9*9663SMark.Logan@Sun.COM  * it under the terms of the GNU General Public License as published by
10*9663SMark.Logan@Sun.COM  * the Free Software Foundation; either version 2 of the License, or
11*9663SMark.Logan@Sun.COM  * (at your option) any later version.
12*9663SMark.Logan@Sun.COM  *
13*9663SMark.Logan@Sun.COM  * This program is distributed in the hope that it will be useful,
14*9663SMark.Logan@Sun.COM  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15*9663SMark.Logan@Sun.COM  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*9663SMark.Logan@Sun.COM  * GNU General Public License for more details.
17*9663SMark.Logan@Sun.COM  *
18*9663SMark.Logan@Sun.COM  * You should have received a copy of the GNU General Public License
19*9663SMark.Logan@Sun.COM  * along with this program (in the main directory of the Linux-NTFS
20*9663SMark.Logan@Sun.COM  * distribution in the file COPYING); if not, write to the Free Software
21*9663SMark.Logan@Sun.COM  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22*9663SMark.Logan@Sun.COM  */
23*9663SMark.Logan@Sun.COM 
24*9663SMark.Logan@Sun.COM #ifndef _CLUSTER_H_
25*9663SMark.Logan@Sun.COM #define _CLUSTER_H_
26*9663SMark.Logan@Sun.COM 
27*9663SMark.Logan@Sun.COM #include "types.h"
28*9663SMark.Logan@Sun.COM #include "volume.h"
29*9663SMark.Logan@Sun.COM 
30*9663SMark.Logan@Sun.COM typedef struct {
31*9663SMark.Logan@Sun.COM 	int x;
32*9663SMark.Logan@Sun.COM } ntfs_cluster;
33*9663SMark.Logan@Sun.COM 
34*9663SMark.Logan@Sun.COM typedef int (cluster_cb)(ntfs_inode *ino, ATTR_RECORD *attr, runlist_element *run, void *data);
35*9663SMark.Logan@Sun.COM 
36*9663SMark.Logan@Sun.COM int cluster_find(ntfs_volume *vol, LCN c_begin, LCN c_end, cluster_cb *cb, void *data);
37*9663SMark.Logan@Sun.COM 
38*9663SMark.Logan@Sun.COM #endif /* _CLUSTER_H_ */
39*9663SMark.Logan@Sun.COM 
40