diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2005-02-03 07:02:56 -0500 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-05-05 05:53:01 -0400 |
commit | c002f42543e155dd2b5b5039ea2637ab26c82513 (patch) | |
tree | ea408493d2e0e9096166ab39a8657689c15c7dfa /fs/ntfs/inode.h | |
parent | f40661be038ce6ed9ef6a8b80307a9153bd95769 (diff) |
NTFS: - Add disable_sparse mount option together with a per volume sparse
enable bit which is set appropriately and a per inode sparse disable
bit which is preset on some system file inodes as appropriate.
- Enforce that sparse support is disabled on NTFS volumes pre 3.0.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/inode.h')
-rw-r--r-- | fs/ntfs/inode.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ntfs/inode.h b/fs/ntfs/inode.h index 56b2d6ec33f7..6eb99777a722 100644 --- a/fs/ntfs/inode.h +++ b/fs/ntfs/inode.h | |||
@@ -2,7 +2,7 @@ | |||
2 | * inode.h - Defines for inode structures NTFS Linux kernel driver. Part of | 2 | * inode.h - Defines for inode structures NTFS Linux kernel driver. Part of |
3 | * the Linux-NTFS project. | 3 | * the Linux-NTFS project. |
4 | * | 4 | * |
5 | * Copyright (c) 2001-2004 Anton Altaparmakov | 5 | * Copyright (c) 2001-2005 Anton Altaparmakov |
6 | * Copyright (c) 2002 Richard Russon | 6 | * Copyright (c) 2002 Richard Russon |
7 | * | 7 | * |
8 | * This program/include file is free software; you can redistribute it and/or | 8 | * This program/include file is free software; you can redistribute it and/or |
@@ -166,6 +166,7 @@ typedef enum { | |||
166 | NI_Sparse, /* 1: Unnamed data attr is sparse (f). | 166 | NI_Sparse, /* 1: Unnamed data attr is sparse (f). |
167 | 1: Create sparse files by default (d). | 167 | 1: Create sparse files by default (d). |
168 | 1: Attribute is sparse (a). */ | 168 | 1: Attribute is sparse (a). */ |
169 | NI_SparseDisabled, /* 1: May not create sparse regions. */ | ||
169 | NI_TruncateFailed, /* 1: Last ntfs_truncate() call failed. */ | 170 | NI_TruncateFailed, /* 1: Last ntfs_truncate() call failed. */ |
170 | } ntfs_inode_state_bits; | 171 | } ntfs_inode_state_bits; |
171 | 172 | ||
@@ -218,6 +219,7 @@ NINO_FNS(IndexAllocPresent) | |||
218 | NINO_FNS(Compressed) | 219 | NINO_FNS(Compressed) |
219 | NINO_FNS(Encrypted) | 220 | NINO_FNS(Encrypted) |
220 | NINO_FNS(Sparse) | 221 | NINO_FNS(Sparse) |
222 | NINO_FNS(SparseDisabled) | ||
221 | NINO_FNS(TruncateFailed) | 223 | NINO_FNS(TruncateFailed) |
222 | 224 | ||
223 | /* | 225 | /* |