Conflicts: configure.ac include/ntfs/Makefile.am include/ntfs/attrib.h include/ntfs/bitmap.h include/ntfs/collate.h include/ntfs/debug.h include/ntfs/dir.h include/ntfs/endians.h include/ntfs/index.h include/ntfs/inode.h include/ntfs/layout.h include/ntfs/logfile.h include/ntfs/logging.h include/ntfs/mft.h include/ntfs/ntfstime.h include/ntfs/runlist.h include/ntfs/support.h include/ntfs/types.h include/ntfs/unistr.h include/ntfs/volume.h libntfs/Makefile.am libntfs/attrib.c libntfs/attrlist.c libntfs/bitmap.c libntfs/bootsect.c libntfs/collate.c libntfs/compress.c libntfs/debug.c libntfs/device.c libntfs/device_io.c libntfs/dir.c libntfs/index.c libntfs/inode.c libntfs/lcnalloc.c libntfs/logfile.c libntfs/logging.c libntfs/mft.c libntfs/mst.c libntfs/runlist.c libntfs/security.c libntfs/unistr.c libntfs/unix_io.c libntfs/volume.c libntfs/win32_io.c ntfsprogs/Makefile.am ntfsprogs/mkntfs.c ntfsprogs/ntfscat.c ntfsprogs/ntfsclone.c ntfsprogs/ntfscmp.c ntfsprogs/ntfscp.c ntfsprogs/ntfsinfo.c ntfsprogs/ntfsmount.8.in ntfsprogs/ntfsmount.c ntfsprogs/ntfsundelete.c ntfsprogs/upcase.c
64 lines
1.8 KiB
C
64 lines
1.8 KiB
C
/*
|
|
* ntfscluster - Part of the Linux-NTFS project.
|
|
*
|
|
* Copyright (c) 2002-2003 Richard Russon
|
|
*
|
|
* This utility will locate the owner of any given sector or cluster.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program (in the main directory of the Linux-NTFS
|
|
* distribution in the file COPYING); if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
|
|
#ifndef _NTFSCLUSTER_H_
|
|
#define _NTFSCLUSTER_H_
|
|
|
|
#include <ntfs-3g/types.h>
|
|
#include <ntfs-3g/layout.h>
|
|
|
|
enum action {
|
|
act_none,
|
|
act_info,
|
|
act_cluster,
|
|
act_sector,
|
|
act_inode,
|
|
act_file,
|
|
act_last,
|
|
act_error,
|
|
};
|
|
|
|
struct options {
|
|
char *device; /* Device/File to work with */
|
|
enum action action; /* What to do */
|
|
int quiet; /* Less output */
|
|
int verbose; /* Extra output */
|
|
int force; /* Override common sense */
|
|
char *filename; /* File to examine */
|
|
u64 inode; /* Inode to examine */
|
|
s64 range_begin; /* Look for objects in this range */
|
|
s64 range_end;
|
|
};
|
|
|
|
struct match {
|
|
u64 inum; /* Inode number */
|
|
LCN lcn; /* Last cluster in use */
|
|
ATTR_TYPES type; /* Attribute type */
|
|
ntfschar *name; /* Attribute name */
|
|
int name_len; /* Length of attribute name */
|
|
};
|
|
|
|
#endif /* _NTFSCLUSTER_H_ */
|
|
|
|
|