dm-kcopyd: optionally zero an area instead of copying
On Wed, Jun 08, 2011 at 05:55:37PM -0400, Mikulas Patocka wrote:
> Hi
>
> This patch introduces an option to kcopyd to zero requested area instead
> of copying. I think Joe may need something like this in his snapshot
> store.
Could we have another function please, rather than overloading the
existing entry point?
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
06-09-2011, 03:36 PM
Mikulas Patocka
dm-kcopyd: optionally zero an area instead of copying
On Thu, 9 Jun 2011, Joe Thornber wrote:
> On Wed, Jun 08, 2011 at 05:55:37PM -0400, Mikulas Patocka wrote:
> > Hi
> >
> > This patch introduces an option to kcopyd to zero requested area instead
> > of copying. I think Joe may need something like this in his snapshot
> > store.
>
> Could we have another function please, rather than overloading the
> existing entry point?
>
> i.e.,
>
> int dm_kcopyd_zero(struct dm_kcopyd_client *kc,
> unsigned num_dests, struct dm_io_region *dests,
> unsigned flags, dm_kcopyd_notify_fn fn, void *context);
>
> Thanks,
>
> - Joe
>
Here it is ... but it duplicates some code in dm_kcopyd_copy..
Mikulas
---
dm-kcopyd: optionally zero an area instead of copying
This patch introduces new function "dm_kcopyd_zero" that zeroes a
requested.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
06-09-2011, 03:36 PM
Mikulas Patocka
dm-kcopyd: optionally zero an area instead of copying
On Thu, 9 Jun 2011, Joe Thornber wrote:
> On Wed, Jun 08, 2011 at 05:55:37PM -0400, Mikulas Patocka wrote:
> > Hi
> >
> > This patch introduces an option to kcopyd to zero requested area instead
> > of copying. I think Joe may need something like this in his snapshot
> > store.
>
> Could we have another function please, rather than overloading the
> existing entry point?
>
> i.e.,
>
> int dm_kcopyd_zero(struct dm_kcopyd_client *kc,
> unsigned num_dests, struct dm_io_region *dests,
> unsigned flags, dm_kcopyd_notify_fn fn, void *context);
>
> Thanks,
>
> - Joe
>
Here it is ... but it duplicates some code in dm_kcopyd_copy..
Mikulas
---
dm-kcopyd: optionally zero an area instead of copying
This patch introduces new function "dm_kcopyd_zero" that zeroes a
requested.