From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qg0-f48.google.com ([209.85.192.48]:34342 "EHLO mail-qg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755454AbcCUMZe (ORCPT ); Mon, 21 Mar 2016 08:25:34 -0400 Received: by mail-qg0-f48.google.com with SMTP id w104so150297355qge.1 for ; Mon, 21 Mar 2016 05:25:34 -0700 (PDT) Subject: Re: btrfs fi du ERROR To: Martin Volf , linux-btrfs@vger.kernel.org References: From: "Austin S. Hemmelgarn" Message-ID: <56EFE820.1020407@gmail.com> Date: Mon, 21 Mar 2016 08:25:04 -0400 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: On 2016-03-21 02:37, Martin Volf wrote: > Hello, > > I have just tried the new "btrfs fi du" command from btrfs-progs 4.5 > on 4.4.6 linux kernel, and it gave me: > > # btrfs fi du /bin > Total Exclusive Set shared Filename > (many lines of output for individual files, probably OK) > ... > ERROR: cannot check space of '/bin': Unknown error -1 > > The -1 is ETXTBSY in this case: > > # strace -o log btrfs fi du /bin &>/dev/null; tail log > > newfstatat(3, "login", {st_mode=S_IFREG|0755, st_size=44784, ...}, 0) = 0 > stat("/bin/login", {st_mode=S_IFREG|0755, st_size=44784, ...}) = 0 > open("/bin/login", O_RDWR) = -1 ETXTBSY (Text file busy) > close(3) = 0 > write(2, "ERROR: ", 7) = 7 > write(2, "cannot check space of '/bin': Un"..., 46) = 46 > write(2, "\n", 1) = 1 > write(1, " Total Exclusive Set shar"..., 3161) = 3161 > exit_group(1) = ? > +++ exited with 1 +++ > > Read-only snapshots give Unknown error -1 too, this time EROFS. > > Is it expected? > Thanks for reporting this, I've sent a patch to fix it.