From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11487 invoked by alias); 15 Apr 2013 17:58:03 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org Received: (qmail 11479 invoked by uid 89); 15 Apr 2013 17:58:03 -0000 X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 15 Apr 2013 17:58:02 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 48) id B6AA44680010; Mon, 15 Apr 2013 18:58:00 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001193] abnormal behavior readdir on fat16 Date: Mon, 15 Apr 2013 17:58:00 -0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: FAT filesystem X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: mjones@linear.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013/txt/msg00231.txt.bz2 Please do not reply to this email, use the link below. http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001193 Mike Jones changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mjones@linear.com --- Comment #1 from Mike Jones --- I am seeing this same behavior. In the process of debugging, I noticed the FAT16/FAT32 discovery during mount uses number of clusters and not an attribute. This means that if I format the SD on Linux, it believes it is FAT16, and if I format the SD on DOS, it thinks it is FAT32. Neither change the results that give me the extra directories. The detected attribute of the directory is 0xF. That means a hidden read only system file. No such files show up when the SD is mounted on DOS or Linux. The cluster is 0 and file size -1. I believe this means it is the directory '..' Not being an expert about FAT, it seems unusual to find more than one of these in the root dir. Perhaps it has something to do with how the table is searched where it goes into a dir, finds this, and goes back up. If so, perhaps the code should filter out the '..'. -- You are receiving this mail because: You are the assignee for the bug.