Does unmount() sync dirty buffers

2 messages, 2 authors, 2012-02-15 · open the first message on its own page

Does unmount() sync dirty buffers

From: Ravishankar <hidden>
Date: 2012-02-14 14:13:19

Hello,

When we unmount a file system with the umount command or the umount()
system call, does the kernel sync the dirty buffers before the file system
is unmounted?I am assuming that the file system is not 'busy' (i.e no open
files etc) and no force options are specified. When I did a walk-through of
do_umount() call in fs/namespace.c, I could not find calls to sync any
dirty pages that might exist.

Thanks!
Ravi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120214/3c605067/attachment.html 

Does unmount() sync dirty buffers

From: Mulyadi Santosa <hidden>
Date: 2012-02-15 08:27:24

Hi :)

On Tue, Feb 14, 2012 at 21:13, Ravishankar [off-list ref] wrote:
Hello,

When we unmount a file system with the umount command or the umount() system
call, does the kernel sync the dirty buffers before the file system is
unmounted?
Yep, it flushes them.  But i forget the exact code path, since last
time I checked it, it was in 2.4.x

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help