1
/* static char *SCCSID = "@(#)1.5 12/4/98 12:56:25 src/jfs/common/include/jfs_defragfs.h, jfsdefrag, w45.fint32_t, 990417.1";
3
* Copyright (c) International Business Machines Corp., 2000
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13
* the GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
#ifndef _H_JFS_DEFRAGFS
21
#define _H_JFS_DEFRAGFS
27
* defragfs parameter list
32
uint8_t pad[3]; /* 3: */
33
int32_t fileset; /* 4: */
34
uint32_t inostamp; /* 4: */
35
uint32_t ino; /* 4: */
36
uint32_t gen; /* 4: */
37
int64_t xoff; /* 8: */
38
int64_t old_xaddr; /* 8: */
39
int64_t new_xaddr; /* 8: */
40
int32_t xlen; /* 4: */
41
} defragfs_t; /* (52) */
44
#define DEFRAGFS_SYNC 0x80000000
45
#define DEFRAGFS_COMMIT 0x40000000
46
#define DEFRAGFS_RELOCATE 0x10000000
48
#define INODE_TYPE 0x0000F000 /* IFREG or IFDIR */
50
#define EXTENT_TYPE 0x000000ff
51
#define DTPAGE 0x00000001
52
#define XTPAGE 0x00000002
53
#define DATAEXT 0x00000004
54
#define EAEXT 0x00000008
56
#endif /* _H_JFS_DEFRAGFS */