From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f195.google.com ([209.85.220.195]:33456 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbdFRKcr (ORCPT ); Sun, 18 Jun 2017 06:32:47 -0400 Received: by mail-qk0-f195.google.com with SMTP id u8so3704787qka.0 for ; Sun, 18 Jun 2017 03:32:46 -0700 (PDT) Date: Sun, 18 Jun 2017 06:32:39 -0400 From: Tejun Heo To: Christoph Hellwig Cc: Greg Kroah-Hartman , Linus Torvalds , linux-fsdevel@vger.kernel.org Subject: Re: odd sysfs find behavior, was: Re: [PATCH v6 00/10] Implement NVMe Namespace Descriptor Identification Message-ID: <20170618103239.GB28042@htj.duckdns.org> References: <20170616094056.GA12465@lst.de> <905ed2e6-1c1c-f3a3-5391-66e42fb61861@suse.de> <20170616095837.GA14217@lst.de> <20170617120814.GA13236@lst.de> <20170618011250.GA1987@kroah.com> <20170618073249.GA25797@lst.de> <20170618073305.GB25797@lst.de> <20170618102020.GA28042@htj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170618102020.GA28042@htj.duckdns.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Jun 18, 2017 at 06:20:20AM -0400, Tejun Heo wrote: > Hello, Christoph. > > On Sun, Jun 18, 2017 at 09:33:05AM +0200, Christoph Hellwig wrote: > > > Both straces attached (gzipped due to size). Note that this on a system > > > with four NVMe devices, two of which are nvme-loop devices that have the > > > uuid attribute. > > > > And now really attached.. > > If you "cd /sys/kernel/debug/tracing; cd -" before doing the find, > does it succeed the first time? It could be that the on-demand > mounting of tracefs is giving incoherent results across the mounting > and confusing find. Before tracefs is automounted File: '/sys/kernel/debug/tracing' Size: 0 Blocks: 0 IO Block: 4096 directory Device: 8h/8d Inode: 2054 Links: 3 Access: (0555/dr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2017-06-18 03:21:26.241000000 -0700 Modify: 2017-06-18 03:21:26.241000000 -0700 Change: 2017-06-18 03:21:26.241000000 -0700 Birth: - and after File: '/sys/kernel/debug/tracing/' Size: 0 Blocks: 0 IO Block: 4096 directory Device: 9h/9d Inode: 1 Links: 6 Access: (0700/drwx------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2017-06-18 03:21:26.241000000 -0700 Modify: 2017-06-18 03:21:26.241000000 -0700 Change: 2017-06-18 03:21:26.241000000 -0700 Birth: - and it gets mounted while the first find is iterating through it. Thanks. -- tejun