Let's say I have the following directory structure, in an ext4 filesystem:
a/b/{1..9}
(in other words, a/b/1, a/b/2, ... a/b/9)
Suppose I am writing to a/b, and then I lose power. fsck runs and finds some files (a/b/1, a/b/2, etc.) and puts them in lost+found.
Now, the question is, would all of the missing files that were placed in lost+found be under the same directory? So for example if every file 1-9 was lost, is it guaranteed that lost+found would contain something like: lost+found/#1234567/*, where the folder #1234567 contains all the files 1-9? Or is it possible for them to be spread out into separate directories like: lost+found/#1234567/1, lost+found/#7654321/2, etc.?
I'm asking because I am trying to understand how I might go about systematically recovering a specific folder that was lost, and whether they would already be grouped together in lost+found, or whether I would have to check every existing file in lost+found to find the missing pieces.