Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbbKNBUK (ORCPT ); Fri, 13 Nov 2015 20:20:10 -0500 Received: from aserp1040.oracle.com ([141.146.126.69]:33846 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752256AbbKNBTc (ORCPT ); Fri, 13 Nov 2015 20:19:32 -0500 From: Vegard Nossum Subject: Endless getdents() in vfat filesystem To: OGAWA Hirofumi Cc: linux-kernel@vger.kernel.org Message-ID: <56468C1E.2060401@oracle.com> Date: Sat, 14 Nov 2015 02:19:26 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020600040509050709070500" X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1423 Lines: 39 This is a multi-part message in MIME format. --------------020600040509050709070500 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, Using the attached disk image I observe that getdents() never returns the end of the directory, i.e. mounting the disk image on a loopback device and running 'ls' under strace shows an endless stream of: getdents(3, /* 2 entries */, 32768) = 48 getdents(3, /* 2 entries */, 32768) = 48 getdents(3, /* 2 entries */, 32768) = 48 ... Vegard --------------020600040509050709070500 Content-Type: application/x-bzip; name="vfat.img.bz2" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="vfat.img.bz2" QlpoOTFBWSZTWdXvWEsAAnp//f+bQyDQITAEY4PHCzfv3KRAAFAACBQECUACBAhAWbAA2TQ0 TVBqbQQ0wBkagZMNDJoBHoR6PUxQikyZo0JkM1MhoAwgaNBoGmjJpoGCURSZpoAaDQEyYCMA IaMIzUMTG9X1B1eygCqAgiV4YCACjjEAAHPdgxaBNGBK2sREREST1a1HVdcYsDxHbkWB6f/c lH40RPFQBz3Qt/1NpjkIXxASkM/uJpkevFSMsPZY6sZvvPptBamXZ6kl+YNHdeMGTvgGgcJh qG+EDh1R0FwzibbnKYaNOh5mFTeQ7qfPQxFlrCBWw8V1nAglBgmigYcZ+GSoFYLQWQqpjQnO 4f2BYFvr3Wxs7LSRfCGOPXPklURERESSBY/xdyRThQkNXvWEsA== --------------020600040509050709070500-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/