~ubuntu-branches/ubuntu/hoary/xfsprogs/hoary

« back to all changes in this revision

Viewing changes to mkfs/xfs_mkfs.h

  • Committer: Bazaar Package Importer
  • Author(s): Nathan Scott
  • Date: 2004-07-28 21:11:38 UTC
  • Revision ID: james.westby@ubuntu.com-20040728211138-0v4pdnunnp7na5lm
Tags: 2.6.20-1
* New upstream release.
* Fix xfs_io segfault on non-XFS files.  (closes: #260470)
* Fix packaging botch, deleted files included.  (closes: #260491)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (c) 2000 Silicon Graphics, Inc.  All Rights Reserved.
 
2
 * Copyright (c) 2000-2001,2004 Silicon Graphics, Inc.  All Rights Reserved.
3
3
 * 
4
4
 * This program is free software; you can redistribute it and/or modify it
5
5
 * under the terms of version 2 of the GNU General Public License as
48
48
                                                 * inode number that we'll
49
49
                                                 * accept w/o warnings
50
50
                                                 */
51
 
extern void  usage (void);
52
 
extern long long  cvtnum (int blocksize, char *s);
 
51
 
 
52
#define XFS_AG_BYTES(bblog)     ((long long)BBSIZE << (bblog))
 
53
#define XFS_AG_MIN_BYTES        ((XFS_AG_BYTES(15)))    /* 16 MB */
 
54
#define XFS_AG_MIN_BLOCKS(blog) ((XFS_AG_BYTES(15)) >> (blog))
 
55
#define XFS_AG_MAX_BLOCKS(blog) ((XFS_AG_BYTES(31) - 1) >> (blog))
 
56
 
 
57
#define XFS_MAX_AGNUMBER        ((xfs_agnumber_t)(NULLAGNUMBER - 1))
 
58
 
 
59
 
 
60
/* xfs_mkfs.c */
 
61
extern void usage (void);
 
62
extern int isdigits (char *str);
 
63
extern long long cvtnum (int blocksize, int sectorsize, char *s);
 
64
 
 
65
/* proto.c */
 
66
extern char *setup_proto (char *fname);
 
67
extern void parseproto (xfs_mount_t *mp, xfs_inode_t *pip, char **pp, char *n);
 
68
extern void res_failed (int err);
 
69
 
 
70
/* maxtrres.c */ 
 
71
extern int max_trans_res (int dirversion,
 
72
                int sectorlog, int blocklog, int inodelog, int dirblocklog);
53
73
 
54
74
#endif  /* __XFS_MKFS_H__ */