Re: [PATCH] Btrfs + Btrfs-progs: make pipe functions re-usable

2012-09-20 Thread David Sterba
On Tue, Sep 18, 2012 at 01:33:29PM +0800, Anand Jain wrote:
   'btrfs service history mnt|dev'
  is basically to show the list of cli/gui commands which are
  successfully run on the btrfs as part of its -
  creation (may be), configuration and maintenance.

Is it modelled after ZFS 'zpool history' command? AFAICS it captures
actions modifiying the pools, there's nothing similar for btrfs.

david
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Btrfs + Btrfs-progs: make pipe functions re-usable

2012-09-17 Thread Hugo Mills
On Mon, Sep 17, 2012 at 12:48:10PM +0800, Anand Jain wrote:
 
   btrfs send introduced a part of code to read kernel-data
   from user-end using pipe. We need this part of code to be
   useable outside of send sub-cmd, so that developing
   service sub-cmd can use it.
 
 What's 'service sub-cmd' please?
 
   at the moment 'btrfs service history mnt|dev'
   to show logs of maintenance.
   comments/suggestions welcome.

   As I said in our private email exchange some months ago, I don't
think this is the right way to be doing this. For example, if you use
an alternative tool (such as btrfs-gui) which uses the ioctls
directly, you've lost that logging information.

   Keeping a log of what's been done to the FS is much better done by
extending the available logging in the kernel (and making it a
compile-time option for those who don't want or need it). You can then
write a simple shell script to chomp through the normal kernel logs to
extract this information.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
  --- I'll take your bet, but make it ten thousand francs. I'm only ---  
   a _poor_ corrupt official.


signature.asc
Description: Digital signature


Re: [PATCH] Btrfs + Btrfs-progs: make pipe functions re-usable

2012-09-17 Thread David Sterba
On Mon, Sep 17, 2012 at 12:48:10PM +0800, Anand Jain wrote:
   btrfs send introduced a part of code to read kernel-data
   from user-end using pipe. We need this part of code to be
   useable outside of send sub-cmd, so that developing
   service sub-cmd can use it.
 
 What's 'service sub-cmd' please?
 
   at the moment 'btrfs service history mnt|dev'
   to show logs of maintenance.
   comments/suggestions welcome.

Sorry, but without a more detailed description I can hardly give useful
comments.  The patch looks ok but stands alone, you can post it with
your proposed feature together.

david
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Btrfs + Btrfs-progs: make pipe functions re-usable

2012-09-17 Thread Anand Jain



As I said in our private email exchange some months ago, I don't
think this is the right way to be doing this. For example, if you use
an alternative tool (such as btrfs-gui) which uses the ioctls
directly, you've lost that logging information.


 I agree with that Hugo. Thanks. These changes are partly for
 the same reason.


Keeping a log of what's been done to the FS is much better done by
extending the available logging in the kernel


 Could you please point out the modules you are talking about.
 I reviewed some but just in case if I have missed out any.



Thanks,  Anand
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Btrfs + Btrfs-progs: make pipe functions re-usable

2012-09-17 Thread Anand Jain



What's 'service sub-cmd' please?


   at the moment 'btrfs service historymnt|dev'
   to show logs of maintenance.
   comments/suggestions welcome.


Sorry, but without a more detailed description I can hardly give useful
comments.



David,

  'btrfs service history mnt|dev'
 is basically to show the list of cli/gui commands which are
 successfully run on the btrfs as part of its -
 creation (may be), configuration and maintenance.

 HTH.

Thanks, Anand

--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Btrfs + Btrfs-progs: make pipe functions re-usable

2012-09-16 Thread Anand Jain



  btrfs send introduced a part of code to read kernel-data
  from user-end using pipe. We need this part of code to be
  useable outside of send sub-cmd, so that developing
  service sub-cmd can use it.


What's 'service sub-cmd' please?


  at the moment 'btrfs service history mnt|dev'
  to show logs of maintenance.
  comments/suggestions welcome.

Thanks
-Anand
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] Btrfs + Btrfs-progs: make pipe functions re-usable

2012-09-14 Thread David Sterba
On Fri, Sep 14, 2012 at 01:50:24PM +0800, anand jain wrote:
  btrfs send introduced a part of code to read kernel-data
  from user-end using pipe. We need this part of code to be
  useable outside of send sub-cmd, so that developing
  service sub-cmd can use it.

What's 'service sub-cmd' please?


david
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] Btrfs + Btrfs-progs: make pipe functions re-usable

2012-09-13 Thread anand jain


 btrfs send introduced a part of code to read kernel-data
 from user-end using pipe. We need this part of code to be
 useable outside of send sub-cmd, so that developing
 service sub-cmd can use it.
 Following this email are the patches for this purpose.

Thanks, Anand

--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html