linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] btrfs: syslog when quota is enabled
@ 2014-07-07 18:41 Anand Jain
  2014-07-07 18:41 ` [PATCH 2/2] btrfs: syslog when quota is disabled Anand Jain
  2014-07-22 17:47 ` [PATCH 1/2] btrfs: syslog when quota is enabled David Sterba
  0 siblings, 2 replies; 6+ messages in thread
From: Anand Jain @ 2014-07-07 18:41 UTC (permalink / raw)
  To: linux-btrfs

must syslog when btrfs working config changes so is to support
offline investigation of the issues.
---
 fs/btrfs/ioctl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 016a5eb..bb4a498 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -4216,6 +4216,8 @@ static long btrfs_ioctl_quota_ctl(struct file *file, void __user *arg)
 	switch (sa->cmd) {
 	case BTRFS_QUOTA_CTL_ENABLE:
 		ret = btrfs_quota_enable(trans, root->fs_info);
+		if (!ret)
+			btrfs_info(root->fs_info, "quota is enabled");
 		break;
 	case BTRFS_QUOTA_CTL_DISABLE:
 		ret = btrfs_quota_disable(trans, root->fs_info);
-- 
2.0.0.257.g75cc6c6


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

end of thread, other threads:[~2014-07-24  3:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-07 18:41 [PATCH 1/2] btrfs: syslog when quota is enabled Anand Jain
2014-07-07 18:41 ` [PATCH 2/2] btrfs: syslog when quota is disabled Anand Jain
2014-07-22 17:47   ` David Sterba
2014-07-24  3:19     ` Satoru Takeuchi
2014-07-22 17:47 ` [PATCH 1/2] btrfs: syslog when quota is enabled David Sterba
2014-07-24  3:19   ` Satoru Takeuchi

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).