1N/A/*
1N/A * ntfscluster - Part of the Linux-NTFS project.
1N/A *
1N/A * Copyright (c) 2002-2003 Richard Russon
1N/A *
1N/A * This utility will locate the owner of any given sector or cluster.
1N/A *
1N/A * This program is free software; you can redistribute it and/or modify
1N/A * it under the terms of the GNU General Public License as published by
1N/A * the Free Software Foundation; either version 2 of the License, or
1N/A * (at your option) any later version.
1N/A *
1N/A * This program is distributed in the hope that it will be useful,
1N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A * GNU General Public License for more details.
1N/A *
1N/A * You should have received a copy of the GNU General Public License
1N/A * along with this program (in the main directory of the Linux-NTFS
1N/A * distribution in the file COPYING); if not, write to the Free Software
1N/A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1N/A */
1N/A
1N/A#ifndef _NTFSCLUSTER_H_
1N/A#define _NTFSCLUSTER_H_
1N/A
1N/A#include "types.h"
1N/A#include "layout.h"
1N/A
1N/Aenum action {
1N/A act_none,
1N/A act_info,
1N/A act_cluster,
1N/A act_sector,
1N/A act_inode,
1N/A act_file,
1N/A act_last,
1N/A act_error,
1N/A};
1N/A
1N/Astruct options {
1N/A char *device; /* Device/File to work with */
1N/A enum action action; /* What to do */
1N/A int quiet; /* Less output */
1N/A int verbose; /* Extra output */
1N/A int force; /* Override common sense */
1N/A char *filename; /* File to examine */
1N/A u64 inode; /* Inode to examine */
1N/A s64 range_begin; /* Look for objects in this range */
1N/A s64 range_end;
1N/A};
1N/A
1N/Astruct match {
1N/A u64 inum; /* Inode number */
1N/A LCN lcn; /* Last cluster in use */
1N/A ATTR_TYPES type; /* Attribute type */
1N/A ntfschar *name; /* Attribute name */
1N/A int name_len; /* Length of attribute name */
1N/A};
1N/A
1N/A#endif /* _NTFSCLUSTER_H_ */
1N/A
1N/A