public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH, RFC] put xfs build features into the stats file
@ 2009-04-20  2:34 Eric Sandeen
  2009-04-20  2:59 ` Nathan Scott
  2009-04-21 14:15 ` Christoph Hellwig
  0 siblings, 2 replies; 5+ messages in thread
From: Eric Sandeen @ 2009-04-20  2:34 UTC (permalink / raw)
  To: xfs-oss

Running xfstests on an xfs build w/o xattrs enabled, I realized
there's no reliable way to see if the running xfs has various
features other than debug (which is shown in /proc/fs/xfs/stat)

What do folks think of adding the BUILD_OPTIONS to this file
as well?

# cat /proc/fs/xfs/stat
extent_alloc 0 0 0 0
...
xpc 0 0 0
debug 0
features security attributes, large block numbers, no debug 

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
---

Index: linux-2.6/fs/xfs/linux-2.6/xfs_stats.c
===================================================================
--- linux-2.6.orig/fs/xfs/linux-2.6/xfs_stats.c
+++ linux-2.6/fs/xfs/linux-2.6/xfs_stats.c
@@ -89,6 +89,8 @@ xfs_read_xfsstats(
 		0);
 #endif
 
+	len += sprintf(buffer + len, "features " XFS_BUILD_OPTIONS "\n");
+
 	if (offset >= len) {
 		*start = buffer;
 		*eof = 1;

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

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

end of thread, other threads:[~2009-04-21 15:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-20  2:34 [PATCH, RFC] put xfs build features into the stats file Eric Sandeen
2009-04-20  2:59 ` Nathan Scott
2009-04-20  3:00   ` Eric Sandeen
2009-04-21 14:15 ` Christoph Hellwig
2009-04-21 15:20   ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox