lkml.org 
[lkml]   [2015]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how to check how much data left to sync to disk at umount?
On Mon, Sep 07, 2015 at 01:29:33PM +0800, Jeff Chua wrote:
> When umount a slow device such as an SD card, the command will take a
> while to run depending on how much data is left to write to the
> device. Is there way to check how much data is remaining waiting to
> write to the device?

$ grep "Dirty\|Writeback" /proc/meminfo

And infer from that.

-Dave.
--
Dave Chinner
david@fromorbit.com


\
 
 \ /
  Last update: 2015-09-17 04:21    [W:0.056 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site