All of lore.kernel.org
 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

* [PATCH 2/2] btrfs: syslog when quota is disabled
  2014-07-07 18:41 [PATCH 1/2] btrfs: syslog when quota is enabled Anand Jain
@ 2014-07-07 18:41 ` Anand Jain
  2014-07-22 17:47   ` David Sterba
  2014-07-22 17:47 ` [PATCH 1/2] btrfs: syslog when quota is enabled David Sterba
  1 sibling, 1 reply; 6+ messages in thread
From: Anand Jain @ 2014-07-07 18:41 UTC (permalink / raw)
  To: linux-btrfs

Offline investigations of the issues would need to know when quota is disabled.

Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
---
 fs/btrfs/ioctl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index bb4a498..fd29978 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -4221,6 +4221,8 @@ static long btrfs_ioctl_quota_ctl(struct file *file, void __user *arg)
 		break;
 	case BTRFS_QUOTA_CTL_DISABLE:
 		ret = btrfs_quota_disable(trans, root->fs_info);
+		if (!ret)
+			btrfs_info(root->fs_info, "quota is disabled");
 		break;
 	default:
 		ret = -EINVAL;
-- 
2.0.0.257.g75cc6c6


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

* Re: [PATCH 1/2] btrfs: syslog when quota is enabled
  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
  1 sibling, 1 reply; 6+ messages in thread
From: David Sterba @ 2014-07-22 17:47 UTC (permalink / raw)
  To: Anand Jain; +Cc: linux-btrfs

On Tue, Jul 08, 2014 at 02:41:28AM +0800, Anand Jain wrote:
> must syslog when btrfs working config changes so is to support
> offline investigation of the issues.

Missing Signed-off-by line

Reviewed-by: David Sterba <dsterba@suse.cz>

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

* Re: [PATCH 2/2] btrfs: syslog when quota is disabled
  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
  0 siblings, 1 reply; 6+ messages in thread
From: David Sterba @ 2014-07-22 17:47 UTC (permalink / raw)
  To: Anand Jain; +Cc: linux-btrfs

On Tue, Jul 08, 2014 at 02:41:29AM +0800, Anand Jain wrote:
> Offline investigations of the issues would need to know when quota is disabled.
> 
> Signed-off-by: Anand Jain <Anand.Jain@oracle.com>

Reviewed-by: David Sterba <dsterba@suse.cz>

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

* Re: [PATCH 1/2] btrfs: syslog when quota is enabled
  2014-07-22 17:47 ` [PATCH 1/2] btrfs: syslog when quota is enabled David Sterba
@ 2014-07-24  3:19   ` Satoru Takeuchi
  0 siblings, 0 replies; 6+ messages in thread
From: Satoru Takeuchi @ 2014-07-24  3:19 UTC (permalink / raw)
  To: dsterba, Anand Jain, linux-btrfs

(2014/07/23 2:47), David Sterba wrote:
> On Tue, Jul 08, 2014 at 02:41:28AM +0800, Anand Jain wrote:
>> must syslog when btrfs working config changes so is to support
>> offline investigation of the issues.
>
> Missing Signed-off-by line
>
> Reviewed-by: David Sterba <dsterba@suse.cz>

Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>

> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" 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] 6+ messages in thread

* Re: [PATCH 2/2] btrfs: syslog when quota is disabled
  2014-07-22 17:47   ` David Sterba
@ 2014-07-24  3:19     ` Satoru Takeuchi
  0 siblings, 0 replies; 6+ messages in thread
From: Satoru Takeuchi @ 2014-07-24  3:19 UTC (permalink / raw)
  To: dsterba, Anand Jain, linux-btrfs

(2014/07/23 2:47), David Sterba wrote:
> On Tue, Jul 08, 2014 at 02:41:29AM +0800, Anand Jain wrote:
>> Offline investigations of the issues would need to know when quota is disabled.
>>
>> Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
>
> Reviewed-by: David Sterba <dsterba@suse.cz>

Reviewed-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>

> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" 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] 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 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.