All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: hch@infradead.org, david@fromorbit.com, darrick.wong@oracle.com
Cc: xfs@oss.sgi.com
Subject: [PATCH 07/22] xfsdocs: update types
Date: Sat, 19 Dec 2015 01:12:59 -0800	[thread overview]
Message-ID: <20151219091259.15558.84471.stgit@birch.djwong.org> (raw)
In-Reply-To: <20151219091208.15558.65013.stgit@birch.djwong.org>

Update the common data types to reflect modern XFS source.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
 .../allocation_groups.asciidoc                     |    8 +++----
 .../XFS_Filesystem_Structure/common_types.asciidoc |   23 ++++++++++++++------
 .../XFS_Filesystem_Structure/data_extents.asciidoc |    4 ++-
 .../XFS_Filesystem_Structure/ondisk_inode.asciidoc |    2 +-
 4 files changed, 23 insertions(+), 14 deletions(-)


diff --git a/design/XFS_Filesystem_Structure/allocation_groups.asciidoc b/design/XFS_Filesystem_Structure/allocation_groups.asciidoc
index afbbb67..b511324 100644
--- a/design/XFS_Filesystem_Structure/allocation_groups.asciidoc
+++ b/design/XFS_Filesystem_Structure/allocation_groups.asciidoc
@@ -47,11 +47,11 @@ struct xfs_sb
 {
 	__uint32_t		sb_magicnum;
 	__uint32_t		sb_blocksize;
-	xfs_drfsbno_t		sb_dblocks;
-	xfs_drfsbno_t		sb_rblocks;
-	xfs_drtbno_t		sb_rextents;
+	xfs_rfsblock_t		sb_dblocks;
+	xfs_rfsblock_t		sb_rblocks;
+	xfs_rtblock_t		sb_rextents;
 	uuid_t			sb_uuid;
-	xfs_dfsbno_t		sb_logstart;
+	xfs_fsblock_t		sb_logstart;
 	xfs_ino_t		sb_rootino;
 	xfs_ino_t		sb_rbmino;
 	xfs_ino_t		sb_rsumino;
diff --git a/design/XFS_Filesystem_Structure/common_types.asciidoc b/design/XFS_Filesystem_Structure/common_types.asciidoc
index ea2d21f..51909be 100644
--- a/design/XFS_Filesystem_Structure/common_types.asciidoc
+++ b/design/XFS_Filesystem_Structure/common_types.asciidoc
@@ -10,7 +10,7 @@ Unsigned 64 bit absolute xref:Inode_Numbers[inode number].
 Signed 64 bit file offset.
 
 *xfs_daddr_t*::
-Signed 64 bit disk address.
+Signed 64 bit disk address (sectors).
 
 *xfs_agnumber_t*::
 Unsigned 32 bit xref:Allocation_Groups[AG number].
@@ -22,7 +22,10 @@ Unsigned 32 bit AG relative block number.
 Unsigned 32 bit xref:Data_Extents[extent] length in blocks.
 
 *xfs_extnum_t*::
-Signed 32 bit number of extents in a file.
+Signed 32 bit number of extents in a data fork.
+
+*xfs_aextnum_t*::
+Signed 16 bit number of extents in an attribute fork.
 
 *xfs_dablk_t*::
 Unsigned 32 bit block number for xref:Directories[directories] and
@@ -31,19 +34,25 @@ xref:Extended_Attributes[extended attributes].
 *xfs_dahash_t*::
 Unsigned 32 bit hash of a directory file name or extended attribute name.
 
-*xfs_dfsbno_t*::
+*xfs_fsblock_t*::
 Unsigned 64 bit filesystem block number combining
 xref:Allocation_Groups[AG number] and block offset into the AG.
 
-*xfs_drfsbno_t*::
+*xfs_rfsblock_t*::
 Unsigned 64 bit raw filesystem block number.
 
-*xfs_drtbno_t*::
+*xfs_rtblock_t*::
 Unsigned 64 bit extent number in the xref:Real-time_Devices[real-time]
 sub-volume.
 
-*xfs_dfiloff_t*::
+*xfs_fileoff_t*::
 Unsigned 64 bit block offset into a file.
 
-*xfs_dfilblks_t*::
+*xfs_filblks_t*::
 Unsigned 64 bit block count for a file.
+
+*uuid_t*::
+16-byte universally unique identifier (UUID).
+
+*xfs_fsize_t*::
+Signed 64 bit byte size of a file.
diff --git a/design/XFS_Filesystem_Structure/data_extents.asciidoc b/design/XFS_Filesystem_Structure/data_extents.asciidoc
index b71bc52..8b09fee 100644
--- a/design/XFS_Filesystem_Structure/data_extents.asciidoc
+++ b/design/XFS_Filesystem_Structure/data_extents.asciidoc
@@ -217,9 +217,9 @@ struct xfs_bmdr_block {
      __be16                     bb_numrecs;
 };
 struct xfs_bmbt_key {
-     xfs_dfiloff_t              br_startoff;
+     xfs_fileoff_t              br_startoff;
 };
-typedef xfs_dfsbno_t xfs_bmbt_ptr_t, xfs_bmdr_ptr_t;
+typedef xfs_fsblock_t xfs_bmbt_ptr_t, xfs_bmdr_ptr_t;
 ----
 
 * On disk, the B+tree node starts with the +xfs_bmbr_block_t+ header followed by
diff --git a/design/XFS_Filesystem_Structure/ondisk_inode.asciidoc b/design/XFS_Filesystem_Structure/ondisk_inode.asciidoc
index dfdcc32..7262178 100644
--- a/design/XFS_Filesystem_Structure/ondisk_inode.asciidoc
+++ b/design/XFS_Filesystem_Structure/ondisk_inode.asciidoc
@@ -88,7 +88,7 @@ struct xfs_dinode_core {
      xfs_timestamp_t           di_mtime;
      xfs_timestamp_t           di_ctime;
      xfs_fsize_t               di_size;
-     xfs_drfsbno_t             di_nblocks;
+     xfs_rfsblock_t            di_nblocks;
      xfs_extlen_t              di_extsize;
      xfs_extnum_t              di_nextents;
      xfs_aextnum_t             di_anextents;

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  parent reply	other threads:[~2015-12-19  9:13 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-19  9:12 [RFCv4 00/22] xfs-documentation: massive cleanups and add v5 format, reverse-mapping, reflink, and dedupe support Darrick J. Wong
2015-12-19  9:12 ` [PATCH 01/22] xfsdocs: fix asciidoc confusion w.r.t. include file newline at EOF Darrick J. Wong
2016-01-03 12:22   ` Christoph Hellwig
2015-12-19  9:12 ` [PATCH 02/22] xfsdocs: update book subtitles and headings Darrick J. Wong
2016-01-03 12:22   ` Christoph Hellwig
2015-12-19  9:12 ` [PATCH 03/22] xfsdocs: restore the old rendering of structure field definitions Darrick J. Wong
2016-01-03 12:23   ` Christoph Hellwig
2015-12-19  9:12 ` [PATCH 04/22] xfsdocs: convert html entities to regular characters Darrick J. Wong
2016-01-03 12:23   ` Christoph Hellwig
2015-12-19  9:12 ` [PATCH 05/22] xfsdocs: convert images to text Darrick J. Wong
2016-01-03 12:23   ` Christoph Hellwig
2015-12-19  9:12 ` [PATCH 06/22] xfsdocs: delete images of hex dumps Darrick J. Wong
2016-01-03 12:31   ` Christoph Hellwig
2015-12-19  9:12 ` Darrick J. Wong [this message]
2016-01-03 12:24   ` [PATCH 07/22] xfsdocs: update types Christoph Hellwig
2015-12-19  9:13 ` [PATCH 08/22] xfsdocs: make example section titles consistent Darrick J. Wong
2016-01-03 12:25   ` Christoph Hellwig
2015-12-19  9:13 ` [PATCH 09/22] xfsdocs: fix various errors and missing bits in the text Darrick J. Wong
2016-01-03 12:25   ` Christoph Hellwig
2015-12-19  9:13 ` [PATCH 10/22] xfsdocs: add missing structure field definitions Darrick J. Wong
2016-01-03 12:26   ` Christoph Hellwig
2015-12-19  9:13 ` [PATCH 11/22] xfsdocs: add missing xfs_db examples Darrick J. Wong
2016-01-03 12:26   ` Christoph Hellwig
2015-12-19  9:13 ` [PATCH 12/22] xfsdocs: fix quoted text markings Darrick J. Wong
2016-01-03 12:26   ` Christoph Hellwig
2015-12-19  9:13 ` [PATCH 13/22] xfsdocs: introduce XFS at a high level Darrick J. Wong
2016-01-03 12:28   ` Christoph Hellwig
2015-12-19  9:13 ` [PATCH 14/22] xfsdocs: document the xfs log format Darrick J. Wong
2016-01-03 13:40   ` Christoph Hellwig
2015-12-19  9:13 ` [PATCH 15/22] xfsdocs: document the operation of the realtime device and inodes Darrick J. Wong
2016-01-03 13:41   ` Christoph Hellwig
2016-01-05  0:14     ` Darrick J. Wong
2016-01-05  2:36       ` Dave Chinner
2015-12-19  9:13 ` [PATCH 16/22] xfsdocs: add documentation of v5 fields Darrick J. Wong
2016-01-03 13:46   ` Christoph Hellwig
2015-12-19  9:14 ` [PATCH 17/22] xfsdocs: add a chapter discussing v5 disk format Darrick J. Wong
2016-01-03 13:54   ` Christoph Hellwig
2015-12-19  9:14 ` [PATCH 18/22] xfsdocs: document magic numbers and theoretical limits Darrick J. Wong
2016-01-03 13:54   ` Christoph Hellwig
2015-12-19  9:14 ` [PATCH 19/22] xfsdocs: document the sparse inodes feature Darrick J. Wong
2016-01-03 13:55   ` Christoph Hellwig
2015-12-19  9:14 ` [PATCH 20/22] xfsdocs: reverse-mapping btree documentation Darrick J. Wong
2015-12-19  9:14 ` [PATCH 21/22] xfsdocs: document refcount btree and reflink Darrick J. Wong
2015-12-19  9:14 ` [PATCH 22/22] xfsdocs: move directory chapter before xattr chapter Darrick J. Wong
2016-01-03 13:46   ` Christoph Hellwig
2015-12-20 15:29 ` [RFCv4 00/22] xfs-documentation: massive cleanups and add v5 format, reverse-mapping, reflink, and dedupe support Christoph Hellwig
2015-12-20 20:46   ` Dave Chinner
2016-01-05  0:23     ` Darrick J. Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151219091259.15558.84471.stgit@birch.djwong.org \
    --to=darrick.wong@oracle.com \
    --cc=david@fromorbit.com \
    --cc=hch@infradead.org \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.