From owner-freebsd-questions@FreeBSD.ORG Mon Feb 27 22:16:43 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC716106564A for ; Mon, 27 Feb 2012 22:16:43 +0000 (UTC) (envelope-from rbanfield@weogeo.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9E1AA8FC0A for ; Mon, 27 Feb 2012 22:16:43 +0000 (UTC) Received: by daec6 with SMTP id c6so3752664dae.13 for ; Mon, 27 Feb 2012 14:16:43 -0800 (PST) Received-SPF: pass (google.com: domain of rbanfield@weogeo.com designates 10.68.240.135 as permitted sender) client-ip=10.68.240.135; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rbanfield@weogeo.com designates 10.68.240.135 as permitted sender) smtp.mail=rbanfield@weogeo.com Received: from mr.google.com ([10.68.240.135]) by 10.68.240.135 with SMTP id wa7mr45367136pbc.7.1330381003354 (num_hops = 1); Mon, 27 Feb 2012 14:16:43 -0800 (PST) Received: by 10.68.240.135 with SMTP id wa7mr38082695pbc.7.1330379532793; Mon, 27 Feb 2012 13:52:12 -0800 (PST) Received: from [192.168.0.2] (pool-72-91-240-41.tampfl.fios.verizon.net. [72.91.240.41]) by mx.google.com with ESMTPS id s1sm13718762pbs.21.2012.02.27.13.52.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 27 Feb 2012 13:52:11 -0800 (PST) Message-ID: <4F4BFB09.9090002@weogeo.com> Date: Mon, 27 Feb 2012 16:52:09 -0500 From: Robert Banfield User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnMY3F3Vsu0yDJh0XD3otVDLgypSqW/k38kBNcLm4EqWX760CfJKh7ZYGNXk1QEi1TwMMq2 Subject: "find" not traversing all directories on a single zfs file system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 22:16:43 -0000 Summary: I am executing the command "find . > ../file_list" and it is not traversing all the subdirectories it encounters along the way. There is no separate file system mounted along the path. Long version: I'm new to FreeBSD and ZFS (many years of linux experience though), so my apologies if I'm missing something straightforward here. This is a tile server which has tens of millions of mostly small files. I'm logged in as root, and there is no networked file system anywhere in the mix. I'm using the version of find installed with FreeBSD 9.0-RELEASE amd64. cd /zfs_mount_point/mydir find . &> ../file_list I would presume that file_list contains a list of every file and directory inside of /zfs_mount_point/mydir, however some directories contain only the directory entry without any of the file and subdirectories it contains. As an example, file_list contains: ./dataset_tiles ./dataset_tiles/token1 ./dataset_tiles/token1/kml ./dataset_tiles/token1/kml/kml.png ./dataset_tiles/token2 ./dataset_tiles/token3 ./dataset_tiles/token3/kml ... The problem is "./dataset_tiles/token2" is a directory, and none of its entries appear anywhere in the file_list. Yet if I do the following: find ./dataset_tiles/token2 I get a list of everything that I would expect to have been in file_list, but did not. "ls -l" shows the entry type character as 'd'. token2 is just a subdirectory of dataset_tiles, not a separate mount point. I should have all the requisite permissions to access the files in that directory, and I can run find successfully if I specify any of the directories which do not seem to be working. Here's an actual 'ls -ld' on one of the directories not working: ls -ld 967c4f32-8a9e-0459-8e94-c911e41be43b/ drwxr-xr-x 10 root wheel 10 Feb 4 21:45 967c4f32-8a9e-0459-8e94-c911e41be43b/ The only other tidbit of information I can think to add is I also tried running "find -d ." with no overall change in output other than the order the directories were searched. Any idea what's going on? Thanks!