All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] Suggestions to fix orphan dir cleanup
@ 2009-02-12  8:27 Srinivas Eeda
  0 siblings, 0 replies; only message in thread
From: Srinivas Eeda @ 2009-02-12  8:27 UTC (permalink / raw)
  To: ocfs2-devel

Hi all,

In 1.4 and 1.2 there is a hole that leaves orphans in a orphan directory 
till fsck was run or recovery occurs on that slot.

In the current implementation, if node A did rm of a file while it is 
opened by node B. Now if node A umounts and node B dies and is restarted 
first, it only recovers itself leaving orphan file in node A's orphan 
directory.

In order to fix the problem, I am  looking for your inputs on what is 
the best :)

1) recover all slots(osb->max_slots) whenever there is a recovery. This 
can trigger simultaneous recoveries if there were multiple node failures.

2) queue recovery  during mount(even if the journal is clean). This can 
still leave the file in orphan directory till the slot is used.

3) Initiate recovery periodically after certian interval. I do not see 
much benefit in this.

thanks,
--Srini

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-12  8:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-12  8:27 [Ocfs2-devel] Suggestions to fix orphan dir cleanup Srinivas Eeda

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.