public inbox for ecos-bugs@sourceware.org help / color / mirror / Atom feed
From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-bugs@ecos.sourceware.org Subject: [Bug 1001193] New: abnormal behavior readdir on fat16 Date: Thu, 07 Apr 2011 19:33:00 -0000 [thread overview] Message-ID: <bug-1001193-13@http.bugs.ecos.sourceware.org/> (raw) Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001193 Summary: abnormal behavior readdir on fat16 Product: eCos Version: unknown Platform: All OS/Version: Other Status: UNCONFIRMED Severity: minor Priority: low Component: FAT filesystem AssignedTo: unassigned@bugs.ecos.sourceware.org ReportedBy: arteminus@yandex.ru CC: ecos-bugs@ecos.sourceware.org Class: Advice Request I heve code: ... ret = mount("/dev/synthdisk0/" , "/", "fatfs"); DIR *dirp; dirp = opendir( "/dir3/" ); while (true) { struct dirent *entry = readdir( dirp ); if( entry == NULL ) break; debug_printf("%s",entry->d_name); } ... And have directory(filesystem fat16): /mnt/loop/dir3# ls dir1 dir2 file1 file2 mmm text Why I get list1 instead list2? list1: . .. Af FILE1 Af FILE2 Ad DIR1 Ad DIR2 At TEXT Am MMM list2: . .. FILE1 FILE2 DIR1 DIR2 TEXT MMM I think this is a mistake(may be at work with long file names) and should correct in /packages/fs/fat/current/src/fatfs_supp.c in function static int read_next_raw_dentry(fatfs_disk_t *disk, fatfs_data_pos_t *pos, fat_raw_dir_entry_t *dentry) { ... +++if(dentry->attr == 16 /*dir*/ && dentry->attr == 32 /*file*/) ... } -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
next reply other threads:[~2011-04-07 19:33 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-04-07 19:33 bugzilla-daemon [this message] 2013-04-15 17:58 ` [Bug 1001193] " bugzilla-daemon -- strict thread matches above, loose matches on Subject: below -- 2011-04-07 19:33 [Bug 1001193] New: " bugzilla-daemon
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-1001193-13@http.bugs.ecos.sourceware.org/ \ --to=bugzilla-daemon@bugs.ecos.sourceware.org \ --cc=ecos-bugs@ecos.sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).