File 0001-xfsprogs-mark-sparse-inode-allocation-as-unsupported.patch of Package xfsprogs.21270

From bcef1584a87a5472fd22f0dcecfbbcce10b40f9a Mon Sep 17 00:00:00 2001
From: Mark Fasheh <mfasheh@suse.de>
Date: Mon, 22 Feb 2016 13:19:13 -0800
Subject: [PATCH] xfsprogs: mark sparse inode allocation as unsupported

This feature is still experimental and unsupported. Update the man page and
mkfs.xfs to reflect this.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
---
 man/man8/mkfs.xfs.8 | 4 +++-
 mkfs/xfs_mkfs.c     | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/man/man8/mkfs.xfs.8 b/man/man8/mkfs.xfs.8
index 580fb58..44be2ca 100644
--- a/man/man8/mkfs.xfs.8
+++ b/man/man8/mkfs.xfs.8
@@ -417,7 +417,9 @@ If the value is omitted, 1 is assumed.  (This default changed
 in release version 3.2.0.)
 .TP
 .BI sparse[= value ]
-Enable sparse inode chunk allocation. The
+Enable sparse inode chunk allocation. This feature is currently experimental
+and unsupported by SUSE Technical Services.
+The
 .I value
 is either 0 or 1, with 1 signifying that sparse allocation is enabled.
 If the value is omitted, 1 is assumed. Sparse inode allocation is
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index 7bdb5bc..cf85315 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -1888,6 +1888,10 @@ _("warning: sparse inodes not supported without CRC support, disabled.\n"));
 		spinodes = 0;
 	}
 
+	if (spinodes)
+		fprintf(stderr,
+_("WARNING: This file system will be created with features that are unsupported by SUSE Technical Services: Sparse Inodes\n"));
+
 	if (nsflag || nlflag) {
 		if (dirblocksize < blocksize ||
 					dirblocksize > XFS_MAX_BLOCKSIZE) {
-- 
2.1.4

openSUSE Build Service is sponsored by