diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/exportfs.h | 13 | ||||
| -rw-r--r-- | include/linux/nilfs2_fs.h | 18 |
2 files changed, 26 insertions, 5 deletions
diff --git a/include/linux/exportfs.h b/include/linux/exportfs.h index a9cd507f8cd2..28028988c862 100644 --- a/include/linux/exportfs.h +++ b/include/linux/exportfs.h | |||
| @@ -67,6 +67,19 @@ enum fid_type { | |||
| 67 | * 32 bit parent block number, 32 bit parent generation number | 67 | * 32 bit parent block number, 32 bit parent generation number |
| 68 | */ | 68 | */ |
| 69 | FILEID_UDF_WITH_PARENT = 0x52, | 69 | FILEID_UDF_WITH_PARENT = 0x52, |
| 70 | |||
| 71 | /* | ||
| 72 | * 64 bit checkpoint number, 64 bit inode number, | ||
| 73 | * 32 bit generation number. | ||
| 74 | */ | ||
| 75 | FILEID_NILFS_WITHOUT_PARENT = 0x61, | ||
| 76 | |||
| 77 | /* | ||
| 78 | * 64 bit checkpoint number, 64 bit inode number, | ||
| 79 | * 32 bit generation number, 32 bit parent generation. | ||
| 80 | * 64 bit parent inode number. | ||
| 81 | */ | ||
| 82 | FILEID_NILFS_WITH_PARENT = 0x62, | ||
| 70 | }; | 83 | }; |
| 71 | 84 | ||
| 72 | struct fid { | 85 | struct fid { |
diff --git a/include/linux/nilfs2_fs.h b/include/linux/nilfs2_fs.h index f5487b6f91ed..227e49dd5720 100644 --- a/include/linux/nilfs2_fs.h +++ b/include/linux/nilfs2_fs.h | |||
| @@ -4,16 +4,16 @@ | |||
| 4 | * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. | 4 | * Copyright (C) 2005-2008 Nippon Telegraph and Telephone Corporation. |
| 5 | * | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU Lesser General Public License as published |
| 8 | * the Free Software Foundation; either version 2 of the License, or | 8 | * by the Free Software Foundation; either version 2.1 of the License, or |
| 9 | * (at your option) any later version. | 9 | * (at your option) any later version. |
| 10 | * | 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, | 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. | 14 | * GNU Lesser General Public License for more details. |
| 15 | * | 15 | * |
| 16 | * You should have received a copy of the GNU General Public License | 16 | * You should have received a copy of the GNU Lesser General Public License |
| 17 | * along with this program; if not, write to the Free Software | 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | 18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | * | 19 | * |
| @@ -147,7 +147,6 @@ struct nilfs_super_root { | |||
| 147 | #define NILFS_MOUNT_ERRORS_CONT 0x0010 /* Continue on errors */ | 147 | #define NILFS_MOUNT_ERRORS_CONT 0x0010 /* Continue on errors */ |
| 148 | #define NILFS_MOUNT_ERRORS_RO 0x0020 /* Remount fs ro on errors */ | 148 | #define NILFS_MOUNT_ERRORS_RO 0x0020 /* Remount fs ro on errors */ |
| 149 | #define NILFS_MOUNT_ERRORS_PANIC 0x0040 /* Panic on errors */ | 149 | #define NILFS_MOUNT_ERRORS_PANIC 0x0040 /* Panic on errors */ |
| 150 | #define NILFS_MOUNT_SNAPSHOT 0x0080 /* Snapshot flag */ | ||
| 151 | #define NILFS_MOUNT_BARRIER 0x1000 /* Use block barriers */ | 150 | #define NILFS_MOUNT_BARRIER 0x1000 /* Use block barriers */ |
| 152 | #define NILFS_MOUNT_STRICT_ORDER 0x2000 /* Apply strict in-order | 151 | #define NILFS_MOUNT_STRICT_ORDER 0x2000 /* Apply strict in-order |
| 153 | semantics also for data */ | 152 | semantics also for data */ |
| @@ -229,6 +228,7 @@ struct nilfs_super_block { | |||
| 229 | */ | 228 | */ |
| 230 | #define NILFS_CURRENT_REV 2 /* current major revision */ | 229 | #define NILFS_CURRENT_REV 2 /* current major revision */ |
| 231 | #define NILFS_MINOR_REV 0 /* minor revision */ | 230 | #define NILFS_MINOR_REV 0 /* minor revision */ |
| 231 | #define NILFS_MIN_SUPP_REV 2 /* minimum supported revision */ | ||
| 232 | 232 | ||
| 233 | /* | 233 | /* |
| 234 | * Feature set definitions | 234 | * Feature set definitions |
| @@ -270,6 +270,14 @@ struct nilfs_super_block { | |||
| 270 | segments */ | 270 | segments */ |
| 271 | 271 | ||
| 272 | /* | 272 | /* |
| 273 | * We call DAT, cpfile, and sufile root metadata files. Inodes of | ||
| 274 | * these files are written in super root block instead of ifile, and | ||
| 275 | * garbage collector doesn't keep any past versions of these files. | ||
| 276 | */ | ||
| 277 | #define NILFS_ROOT_METADATA_FILE(ino) \ | ||
| 278 | ((ino) >= NILFS_DAT_INO && (ino) <= NILFS_SUFILE_INO) | ||
| 279 | |||
| 280 | /* | ||
| 273 | * bytes offset of secondary super block | 281 | * bytes offset of secondary super block |
| 274 | */ | 282 | */ |
| 275 | #define NILFS_SB2_OFFSET_BYTES(devsize) ((((devsize) >> 12) - 1) << 12) | 283 | #define NILFS_SB2_OFFSET_BYTES(devsize) ((((devsize) >> 12) - 1) << 12) |
