linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xfsprogs/db: version command misses RMAPBT feature string
@ 2017-09-18  7:13 Zorro Lang
  2017-09-18 12:44 ` Brian Foster
  2017-09-18 15:38 ` Darrick J. Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Zorro Lang @ 2017-09-18  7:13 UTC (permalink / raw)
  To: linux-xfs

When I create a XFS with "rmapbt=1,reflink=1", "xfs_db -c version"
didn't show RMAPBT feature. But REFLINK can be found.

  # mkfs/mkfs.xfs -f -m rmapbt=1,reflink=1 /dev/sda3
  # db/xfs_db -c version /dev/sda3
  versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT,REFLINK

Signed-off-by: Zorro Lang <zlang@redhat.com>
---
 db/sb.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/db/sb.c b/db/sb.c
index 8e7722cd..01d94a66 100644
--- a/db/sb.c
+++ b/db/sb.c
@@ -694,6 +694,8 @@ version_string(
 		strcat(s, ",SPARSE_INODES");
 	if (xfs_sb_version_hasmetauuid(sbp))
 		strcat(s, ",META_UUID");
+	if (xfs_sb_version_hasrmapbt(sbp))
+		strcat(s, ",RMAPBT");
 	if (xfs_sb_version_hasreflink(sbp))
 		strcat(s, ",REFLINK");
 	return s;
-- 
2.13.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] xfsprogs/db: version command misses RMAPBT feature string
  2017-09-18  7:13 [PATCH] xfsprogs/db: version command misses RMAPBT feature string Zorro Lang
@ 2017-09-18 12:44 ` Brian Foster
  2017-09-18 15:38 ` Darrick J. Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Brian Foster @ 2017-09-18 12:44 UTC (permalink / raw)
  To: Zorro Lang; +Cc: linux-xfs

On Mon, Sep 18, 2017 at 03:13:35PM +0800, Zorro Lang wrote:
> When I create a XFS with "rmapbt=1,reflink=1", "xfs_db -c version"
> didn't show RMAPBT feature. But REFLINK can be found.
> 
>   # mkfs/mkfs.xfs -f -m rmapbt=1,reflink=1 /dev/sda3
>   # db/xfs_db -c version /dev/sda3
>   versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT,REFLINK
> 
> Signed-off-by: Zorro Lang <zlang@redhat.com>
> ---

Reviewed-by: Brian Foster <bfoster@redhat.com>

>  db/sb.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/db/sb.c b/db/sb.c
> index 8e7722cd..01d94a66 100644
> --- a/db/sb.c
> +++ b/db/sb.c
> @@ -694,6 +694,8 @@ version_string(
>  		strcat(s, ",SPARSE_INODES");
>  	if (xfs_sb_version_hasmetauuid(sbp))
>  		strcat(s, ",META_UUID");
> +	if (xfs_sb_version_hasrmapbt(sbp))
> +		strcat(s, ",RMAPBT");
>  	if (xfs_sb_version_hasreflink(sbp))
>  		strcat(s, ",REFLINK");
>  	return s;
> -- 
> 2.13.5
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xfsprogs/db: version command misses RMAPBT feature string
  2017-09-18  7:13 [PATCH] xfsprogs/db: version command misses RMAPBT feature string Zorro Lang
  2017-09-18 12:44 ` Brian Foster
@ 2017-09-18 15:38 ` Darrick J. Wong
  1 sibling, 0 replies; 3+ messages in thread
From: Darrick J. Wong @ 2017-09-18 15:38 UTC (permalink / raw)
  To: Zorro Lang; +Cc: linux-xfs

On Mon, Sep 18, 2017 at 03:13:35PM +0800, Zorro Lang wrote:
> When I create a XFS with "rmapbt=1,reflink=1", "xfs_db -c version"
> didn't show RMAPBT feature. But REFLINK can be found.
> 
>   # mkfs/mkfs.xfs -f -m rmapbt=1,reflink=1 /dev/sda3
>   # db/xfs_db -c version /dev/sda3
>   versionnum [0xb4a5+0x18a] = V5,NLINK,DIRV2,ALIGN,LOGV2,EXTFLG,MOREBITS,ATTR2,LAZYSBCOUNT,PROJID32BIT,CRC,FTYPE,FINOBT,REFLINK
> 
> Signed-off-by: Zorro Lang <zlang@redhat.com>

Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>

> ---
>  db/sb.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/db/sb.c b/db/sb.c
> index 8e7722cd..01d94a66 100644
> --- a/db/sb.c
> +++ b/db/sb.c
> @@ -694,6 +694,8 @@ version_string(
>  		strcat(s, ",SPARSE_INODES");
>  	if (xfs_sb_version_hasmetauuid(sbp))
>  		strcat(s, ",META_UUID");
> +	if (xfs_sb_version_hasrmapbt(sbp))
> +		strcat(s, ",RMAPBT");
>  	if (xfs_sb_version_hasreflink(sbp))
>  		strcat(s, ",REFLINK");
>  	return s;
> -- 
> 2.13.5
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-18 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-18  7:13 [PATCH] xfsprogs/db: version command misses RMAPBT feature string Zorro Lang
2017-09-18 12:44 ` Brian Foster
2017-09-18 15:38 ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).