diff --git a/include/ntfs-3g/Makefile.am b/include/ntfs-3g/Makefile.am index 6e9e11b4..11a4f7d6 100644 --- a/include/ntfs-3g/Makefile.am +++ b/include/ntfs-3g/Makefile.am @@ -27,6 +27,7 @@ headers = \ mst.h \ ntfstime.h \ object_id.h \ + param.h \ reparse.h \ runlist.h \ security.h \ diff --git a/include/ntfs-3g/acls.h b/include/ntfs-3g/acls.h index 13e5dbd1..8a83d32d 100644 --- a/include/ntfs-3g/acls.h +++ b/include/ntfs-3g/acls.h @@ -29,8 +29,6 @@ * should be moved to some config file */ -#define FORCE_FORMAT_v1x 0 /* Insert security data as in NTFS v1.x */ -#define OWNERFROMACL 1 /* Get the owner from ACL (not Windows owner) */ #define BUFSZ 1024 /* buffer size to read mapping file */ #define MAPPINGFILE ".NTFS-3G/UserMapping" /* default mapping file */ #define LINESZ 120 /* maximum useful size of a mapping line */ diff --git a/include/ntfs-3g/param.h b/include/ntfs-3g/param.h new file mode 100644 index 00000000..95fd7aa8 --- /dev/null +++ b/include/ntfs-3g/param.h @@ -0,0 +1,32 @@ +/* + * param.h - Parameter values for ntfs-3g + * + * Copyright (c) 2009 Jean-Pierre Andre + * + * This program/include file 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/include file 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 NTFS-3G + * 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 _NTFS_PARAM_H +#define _NTFS_PARAM_H + +#define CACHE_INODE_SIZE 32 /* inode cache, zero or >= 3 and not too big */ +#define CACHE_SECURID_SIZE 16 /* securid cache, zero or >= 3 and not too big */ +#define CACHE_LEGACY_SIZE 8 /* legacy cache size, zero or >= 3 and not too big */ + +#define FORCE_FORMAT_v1x 0 /* Insert security data as in NTFS v1.x */ +#define OWNERFROMACL 1 /* Get the owner from ACL (not Windows owner) */ + +#endif /* defined _NTFS_PARAM_H */ diff --git a/include/ntfs-3g/volume.h b/include/ntfs-3g/volume.h index 2a3d0d8a..e695fe75 100644 --- a/include/ntfs-3g/volume.h +++ b/include/ntfs-3g/volume.h @@ -42,10 +42,6 @@ #include #endif -#define CACHE_INODE_SIZE 32 /* inode cache, zero or >= 3 and not too big */ -#define CACHE_SECURID_SIZE 16 /* securid cache, zero or >= 3 and not too big */ -#define CACHE_LEGACY_SIZE 8 /* legacy cache size, zero or >= 3 and not too big */ - /* * Under Cygwin, DJGPP and FreeBSD we do not have MS_RDONLY, * so we define them ourselves. @@ -65,6 +61,7 @@ /* Forward declaration */ typedef struct _ntfs_volume ntfs_volume; +#include "param.h" #include "types.h" #include "support.h" #include "device.h" diff --git a/libntfs-3g/dir.c b/libntfs-3g/dir.c index 84e96d0c..d557656a 100644 --- a/libntfs-3g/dir.c +++ b/libntfs-3g/dir.c @@ -44,6 +44,7 @@ #include #endif +#include "param.h" #include "types.h" #include "debug.h" #include "attrib.h" diff --git a/libntfs-3g/inode.c b/libntfs-3g/inode.c index dc988c45..bffa344f 100644 --- a/libntfs-3g/inode.c +++ b/libntfs-3g/inode.c @@ -40,6 +40,7 @@ #include #endif +#include "param.h" #include "compat.h" #include "types.h" #include "attrib.h" diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index d0cdd77d..362924e6 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -52,6 +52,7 @@ #include #include +#include "param.h" #include "types.h" #include "layout.h" #include "attrib.h"