All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Change /proc/mounts values to human readable form
@ 2016-12-24 17:43 Dušan Čolić
  2016-12-26 16:24 ` Edward Shishkin
  0 siblings, 1 reply; 2+ messages in thread
From: Dušan Čolić @ 2016-12-24 17:43 UTC (permalink / raw)
  To: reiserfs-devel

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

Values in /proc/mounts were in hex format so the attached patch
modifies them to human readable form.
It doesn't print out units (seconds, bytes, pages) but I can make it
if it's desirable because it's not obvious that some values are in nr
of pages.



Dušan

[-- Attachment #2: modify_proc_mounts.patch --]
[-- Type: application/octet-stream, Size: 1036 bytes --]

Signed-off-by:Dushan Tcholich <dusanc@gmail.com>

--- linux-4.8.15-gentoo/fs/reiser4/super_ops.c	2016-12-24 18:22:09.819652124 +0100
+++ linux-4.8.11-gentoo-mod/fs/reiser4/super_ops.c	2016-12-24 18:28:33.884531320 +0100
@@ -467,13 +467,12 @@ static int reiser4_show_options(struct s
 	super = dentry->d_sb;
 	sbinfo = get_super_private(super);
 
-	seq_printf(m, ",atom_max_size=0x%x", sbinfo->tmgr.atom_max_size);
-	seq_printf(m, ",atom_max_age=0x%x", sbinfo->tmgr.atom_max_age);
-	seq_printf(m, ",atom_min_size=0x%x", sbinfo->tmgr.atom_min_size);
-	seq_printf(m, ",atom_max_flushers=0x%x",
+	seq_printf(m, ",atom_max_size=%u", sbinfo->tmgr.atom_max_size);
+	seq_printf(m, ",atom_max_age=%u", sbinfo->tmgr.atom_max_age / HZ);
+	seq_printf(m, ",atom_min_size=%u", sbinfo->tmgr.atom_min_size);
+	seq_printf(m, ",atom_max_flushers=%u",
 		   sbinfo->tmgr.atom_max_flushers);
-	seq_printf(m, ",cbk_cache_slots=0x%x",
-		   sbinfo->tree.cbk_cache.nr_slots);
+	seq_printf(m, ",optimal_io_size=%lu", sbinfo->optimal_io_size);
 
 	return 0;
 }

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

end of thread, other threads:[~2016-12-26 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-24 17:43 [RFC] Change /proc/mounts values to human readable form Dušan Čolić
2016-12-26 16:24 ` Edward Shishkin

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.