Skip to contentSkip to conversation

man: Update unit for fsx_extsize and fsx_cowextsize

PATCH In review John Garry 3 participants 4 messages Aug 8, 2024 – Sep 5, 2024

lore
Share & tools
lore

John Garry

author
#0 lore raw

PATCH 1/1 man: Update unit for fsx_extsize and fsx_cowextsize

The values in fsx_extsize and fsx_cowextsize are in units of bytes, and not filesystem blocks, so update.

In addition, the default cowextsize is 32 filesystem blocks, not 128, so fix that as well.

man/man2/ioctl_xfs_fsgetxattr.2 +3 -3
index 2c626a7e..25a9ba79 100644
@@ -40,7 +40,7 @@ below for more information.
 .PP
 .I fsx_extsize
 is the preferred extent allocation size for data blocks mapped to this file,
-in units of filesystem blocks.
+in units of bytes.
 If this value is zero, the filesystem will choose a default option, which
 is currently zero.
 If
@@ -62,9 +62,9 @@ is the project ID of this file.
 .PP
 .I fsx_cowextsize
 is the preferred extent allocation size for copy on write operations
-targeting this file, in units of filesystem blocks.
+targeting this file, in units of bytes.
 If this field is zero, the filesystem will choose a default option,
-which is currently 128 filesystem blocks.
+which is currently 32 filesystem blocks.
 If
 .B XFS_IOC_FSSETXATTR
 is called with
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · John Garry

The values in fsx_extsize and fsx_cowextsize are in units of bytes, and not filesystem blocks, so update.

In addition, the default cowextsize is 32 filesystem blocks, not 128, so fix that as well.

Yep, that's been wrong for a while. :(

Thanks for fixing the docs,

--D

Quoted 30 lines
man/man2/ioctl_xfs_fsgetxattr.2 +3 -3
index 2c626a7e..25a9ba79 100644
@@ -40,7 +40,7 @@ below for more information.
 .PP
 .I fsx_extsize
 is the preferred extent allocation size for data blocks mapped to this file,
-in units of filesystem blocks.
+in units of bytes.
 If this value is zero, the filesystem will choose a default option, which
 is currently zero.
 If
@@ -62,9 +62,9 @@ is the project ID of this file.
 .PP
 .I fsx_cowextsize
 is the preferred extent allocation size for copy on write operations
-targeting this file, in units of filesystem blocks.
+targeting this file, in units of bytes.
 If this field is zero, the filesystem will choose a default option,
-which is currently 128 filesystem blocks.
+which is currently 32 filesystem blocks.
 If
 .B XFS_IOC_FSSETXATTR
 is called with
Signature · 1 line
2.31.1
author
#2 lore raw
In reply to John Garry
Quoted 7 lines · John Garry

The values in fsx_extsize and fsx_cowextsize are in units of bytes, and not filesystem blocks, so update.

In addition, the default cowextsize is 32 filesystem blocks, not 128, so fix that as well.

Has this change been missed?

Cheers,
John

Quoted 26 lines
man/man2/ioctl_xfs_fsgetxattr.2 +3 -3
index 2c626a7e..25a9ba79 100644
@@ -40,7 +40,7 @@ below for more information.
  .PP
  .I fsx_extsize
  is the preferred extent allocation size for data blocks mapped to this file,
-in units of filesystem blocks.
+in units of bytes.
  If this value is zero, the filesystem will choose a default option, which
  is currently zero.
  If
@@ -62,9 +62,9 @@ is the project ID of this file.
  .PP
  .I fsx_cowextsize
  is the preferred extent allocation size for copy on write operations
-targeting this file, in units of filesystem blocks.
+targeting this file, in units of bytes.
  If this field is zero, the filesystem will choose a default option,
-which is currently 128 filesystem blocks.
+which is currently 32 filesystem blocks.
  If
  .B XFS_IOC_FSSETXATTR
  is called with
#3 lore raw
Quoted 10 lines · John Garry
Quoted 7 lines · John Garry

The values in fsx_extsize and fsx_cowextsize are in units of bytes, and not filesystem blocks, so update.

In addition, the default cowextsize is 32 filesystem blocks, not 128, so fix that as well.

Has this change been missed?

Yup, I'll add it to the next release.

Carlos.

Quoted 32 lines

Cheers,
John

Quoted 26 lines
man/man2/ioctl_xfs_fsgetxattr.2 +3 -3
index 2c626a7e..25a9ba79 100644
@@ -40,7 +40,7 @@ below for more information.
  .PP
  .I fsx_extsize
  is the preferred extent allocation size for data blocks mapped to this file,
-in units of filesystem blocks.
+in units of bytes.
  If this value is zero, the filesystem will choose a default option, which
  is currently zero.
  If
@@ -62,9 +62,9 @@ is the project ID of this file.
  .PP
  .I fsx_cowextsize
  is the preferred extent allocation size for copy on write operations
-targeting this file, in units of filesystem blocks.
+targeting this file, in units of bytes.
  If this field is zero, the filesystem will choose a default option,
-which is currently 128 filesystem blocks.
+which is currently 32 filesystem blocks.
  If
  .B XFS_IOC_FSSETXATTR
  is called with