* btrfs: unlinked 34 orphans
@ 2010-11-09 5:25 David Arendt
2010-11-09 8:36 ` Oystein Viggen
0 siblings, 1 reply; 2+ messages in thread
From: David Arendt @ 2010-11-09 5:25 UTC (permalink / raw)
To: linux-btrfs
Hi,
I received the message: btrfs: unlinked 34 orphans
Just out of couriosity: what does it mean ?
Thanks in advance
Bye,
David Arendt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: btrfs: unlinked 34 orphans
2010-11-09 5:25 btrfs: unlinked 34 orphans David Arendt
@ 2010-11-09 8:36 ` Oystein Viggen
0 siblings, 0 replies; 2+ messages in thread
From: Oystein Viggen @ 2010-11-09 8:36 UTC (permalink / raw)
To: linux-btrfs
* [David Arendt]=20
> I received the message: btrfs: unlinked 34 orphans
>
> Just out of couriosity: what does it mean ?
Ooh, ooh! I think I know this one :)
When a file is unlinked/deleted while an application has it open, it is
kept around allocated on disk so that the app has access to the data in
the file. When the file is closed or the app exits, it is deallocated
(disk space is freed). This is a quite normal way of handling temporar=
y
files.
Now, if there is an unclean shutdown while a file is in this "deleted,
but not freed" state, you get an orphaned file or inode -- that is,
allocated data with no directory entry pointing to it. When btrfs
unlinks these orphans during mount, it's just completing what would hav=
e
happened once the unlinked files were closed. If this happened after a=
n
unclean shutdown (crash or power loss), the message is just btrfs
bragging about working properly.
None of this is actually specific to btrfs. I believe posix filesystem=
s
are more or less required (or at least expected) to behave like this.
(interestingly, Microsoft Windows has a different take on this issue by
simply not letting you delete open files).
=D8ystein
--=20
This message was generated by a horde of attack elephants armed with PR=
NGs.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-09 8:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09 5:25 btrfs: unlinked 34 orphans David Arendt
2010-11-09 8:36 ` Oystein Viggen
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.