~ubuntu-branches/debian/stretch/jfsutils/stretch

« back to all changes in this revision

Viewing changes to defrag/jfs_defragfs.h

  • Committer: Bazaar Package Importer
  • Author(s): Christopher L Cheney
  • Date: 2002-02-10 01:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20020210010000-v63g4150dcpnehzq
Tags: upstream-1.0.14
ImportĀ upstreamĀ versionĀ 1.0.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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";
 
2
 *
 
3
 *   Copyright (c) International Business Machines  Corp., 2000
 
4
 *
 
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.
 
9
 * 
 
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.
 
14
 *
 
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
 
18
 *
 
19
 */
 
20
#ifndef _H_JFS_DEFRAGFS
 
21
#define _H_JFS_DEFRAGFS
 
22
 
 
23
/*
 
24
 *      jfs_defragfs.h
 
25
 */
 
26
/*
 
27
 *      defragfs parameter list
 
28
 */
 
29
typedef struct {
 
30
        uint      flag;           /* 4: */
 
31
        uint8_t   dev;            /* 1: */
 
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) */
 
42
 
 
43
/* plist flag */
 
44
#define DEFRAGFS_SYNC           0x80000000
 
45
#define DEFRAGFS_COMMIT         0x40000000
 
46
#define DEFRAGFS_RELOCATE       0x10000000
 
47
 
 
48
#define INODE_TYPE              0x0000F000      /* IFREG or IFDIR */
 
49
 
 
50
#define EXTENT_TYPE             0x000000ff
 
51
#define DTPAGE                  0x00000001
 
52
#define XTPAGE                  0x00000002
 
53
#define DATAEXT                 0x00000004
 
54
#define EAEXT                   0x00000008
 
55
 
 
56
#endif                          /* _H_JFS_DEFRAGFS */