* how to know when all space from a snapshot delete is freed?
@ 2011-03-02 13:12 Brian J. Murrell
2011-03-02 21:14 ` Goffredo Baroncelli
2011-03-02 21:42 ` David Nicol
0 siblings, 2 replies; 4+ messages in thread
From: Brian J. Murrell @ 2011-03-02 13:12 UTC (permalink / raw)
To: linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
For some time after I issue a snapshot delete, the space in the volume
is freed. It starts to free quite fast and then the progress slows and
speeds up again.
Given that the return from the snapshot delete command is immediate and
the space is freed asynchronously, how can I determine absolutely that
the snapshot has been entirely removed and the space freeing operation
is complete?
Cheers,
b.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to know when all space from a snapshot delete is freed?
2011-03-02 13:12 how to know when all space from a snapshot delete is freed? Brian J. Murrell
@ 2011-03-02 21:14 ` Goffredo Baroncelli
2011-03-02 21:38 ` David Nicol
2011-03-02 21:42 ` David Nicol
1 sibling, 1 reply; 4+ messages in thread
From: Goffredo Baroncelli @ 2011-03-02 21:14 UTC (permalink / raw)
To: Brian J. Murrell; +Cc: linux-btrfs, David Nicol
David worked for some time to a solution to this kind of problem. But I
don't know if it was merged.
See posts on this ML with subject "PATCH: IOCTL#21 progs"
On 03/02/2011 02:12 PM, Brian J. Murrell wrote:
> For some time after I issue a snapshot delete, the space in the volume
> is freed. It starts to free quite fast and then the progress slows and
> speeds up again.
>
> Given that the return from the snapshot delete command is immediate and
> the space is freed asynchronously, how can I determine absolutely that
> the snapshot has been entirely removed and the space freeing operation
> is complete?
>
> Cheers,
> b.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to know when all space from a snapshot delete is freed?
2011-03-02 21:14 ` Goffredo Baroncelli
@ 2011-03-02 21:38 ` David Nicol
0 siblings, 0 replies; 4+ messages in thread
From: David Nicol @ 2011-03-02 21:38 UTC (permalink / raw)
To: kreijack; +Cc: Goffredo Baroncelli, Brian J. Murrell, linux-btrfs
the patch has been working in production at the sponsor's site for
some weeks. It has not been merged, or even built by anyone else, to
my knowledge.
The working kernel patch is at https://patchwork.kernel.org/patch/482721/
The open question, that everyone has more important things to do than
talk about, is, to flesh out the iputs stuff or discard it or put it
in as-is. That question is orthogonal to the function of the
notification-of-completed-dead-root-removal parts, which are complete
and work as designed.
On Wed, Mar 2, 2011 at 3:14 PM, Goffredo Baroncelli <kreijack@libero.it> wrote:
> David worked for some time to a solution to this kind of problem. But I
> don't know if it was merged.
>
> See posts on this ML with subject "PATCH: IOCTL#21 progs"
--
"Reasonable, civil, and intelligent people have not left much of a
mark on history." -- T. Herman Zweibel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to know when all space from a snapshot delete is freed?
2011-03-02 13:12 how to know when all space from a snapshot delete is freed? Brian J. Murrell
2011-03-02 21:14 ` Goffredo Baroncelli
@ 2011-03-02 21:42 ` David Nicol
1 sibling, 0 replies; 4+ messages in thread
From: David Nicol @ 2011-03-02 21:42 UTC (permalink / raw)
To: Brian J. Murrell; +Cc: linux-btrfs
On Wed, Mar 2, 2011 at 7:12 AM, Brian J. Murrell <brian@interlinx.bc.ca> wrote:
> Given that the return from the snapshot delete command is immediate and
> the space is freed asynchronously, how can I determine absolutely that
> the snapshot has been entirely removed and the space freeing operation
> is complete?
>
> Cheers,
> b.
since you just want to determine, and not wait, patch your kernel,
then invoke ioctl#21 with flags of 0x0000 and timeout of 0x0001. you
will have an answer in approximately one millisecond.
--
"Reasonable, civil, and intelligent people have not left much of a
mark on history." -- T. Herman Zweibel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-02 21:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 13:12 how to know when all space from a snapshot delete is freed? Brian J. Murrell
2011-03-02 21:14 ` Goffredo Baroncelli
2011-03-02 21:38 ` David Nicol
2011-03-02 21:42 ` David Nicol
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.