From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753364AbbIQBv0 (ORCPT ); Wed, 16 Sep 2015 21:51:26 -0400 Received: from ipmail06.adl2.internode.on.net ([150.101.137.129]:41045 "EHLO ipmail06.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752596AbbIQBvZ (ORCPT ); Wed, 16 Sep 2015 21:51:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2DbEQDsG/pVPOV8LHlegyOBPYZZokYBAQEBAQEGimuRHQQCAoE9TQEBAQEBAQcBAQEBQT+EJAEBBDocIxAIAxgJJQ8FJQMHGhOILcoaAQsgGYYThUSFDQeELAWSNoMojQCbFYR2LDOKKgEBAQ Date: Thu, 17 Sep 2015 11:50:52 +1000 From: Dave Chinner To: Jeff Chua Cc: lkml Subject: Re: how to check how much data left to sync to disk at umount? Message-ID: <20150917015052.GY26895@dastard> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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