From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
lkml <linux-kernel@vger.kernel.org>,
linux-man <linux-man@vger.kernel.org>
Subject: Re: [PATCH v3 1/1] ioctl-fat.2: new manpage for the ioctl fat API
Date: Tue, 03 Feb 2015 17:51:23 +0900 [thread overview]
Message-ID: <87k2zze5tg.fsf@mail.parknet.co.jp> (raw)
In-Reply-To: <CAKgNAkibtVVFS8Q7gwyn8t7B_qDTALtJ6K0H1rfecqb_p-AR6Q@mail.gmail.com> (Michael Kerrisk's message of "Tue, 3 Feb 2015 09:25:50 +0100")
"Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com> writes:
> Hello Heinrich and Ogawa,
Hi,
> On 23 January 2015 at 20:54, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>> The ioctl(2) system call may be used to retrieve information about
>> the fat file system and to set file attributes.
>>
>> This new manpage describes the details.
>
> @Ogawa, as the FAT maintainer, might you be willing to review this page?
for (;;) {
/*
* Read next directory entry.
*/
ret = ioctl( fd, VFAT_IOCTL_READDIR_BOTH, entry);
/*
* If an error occurs, the return value is -1.
* If d_reclen is zero, the end of the directory
* list has been reached.
*/
if (ret == -1 || entry[0].d_reclen == 0)
break;
Quick reviewed, and looks good. However, entry[0].d_reclen == 0 works as
backward compatibility though. The example might be good to use usual
way of getdents().
I.e., "ret" means
-1 == error
0 == EOD
0 > how many bytes read
Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
WARNING: multiple messages have this Message-ID (diff)
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: "Michael Kerrisk \(man-pages\)" <mtk.manpages@gmail.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
"linux-fsdevel\@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
lkml <linux-kernel@vger.kernel.org>,
linux-man <linux-man@vger.kernel.org>
Subject: Re: [PATCH v3 1/1] ioctl-fat.2: new manpage for the ioctl fat API
Date: Tue, 03 Feb 2015 17:51:23 +0900 [thread overview]
Message-ID: <87k2zze5tg.fsf@mail.parknet.co.jp> (raw)
In-Reply-To: <CAKgNAkibtVVFS8Q7gwyn8t7B_qDTALtJ6K0H1rfecqb_p-AR6Q@mail.gmail.com> (Michael Kerrisk's message of "Tue, 3 Feb 2015 09:25:50 +0100")
"Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com> writes:
> Hello Heinrich and Ogawa,
Hi,
> On 23 January 2015 at 20:54, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>> The ioctl(2) system call may be used to retrieve information about
>> the fat file system and to set file attributes.
>>
>> This new manpage describes the details.
>
> @Ogawa, as the FAT maintainer, might you be willing to review this page?
for (;;) {
/*
* Read next directory entry.
*/
ret = ioctl( fd, VFAT_IOCTL_READDIR_BOTH, entry);
/*
* If an error occurs, the return value is -1.
* If d_reclen is zero, the end of the directory
* list has been reached.
*/
if (ret == -1 || entry[0].d_reclen == 0)
break;
Quick reviewed, and looks good. However, entry[0].d_reclen == 0 works as
backward compatibility though. The example might be good to use usual
way of getdents().
I.e., "ret" means
-1 == error
0 == EOD
0 > how many bytes read
Thanks.
--
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
next prev parent reply other threads:[~2015-02-03 8:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKgNAkhuGYKtUKkm2+wU+TwQb6iZ+EmnLDdr4qg4fWHJyL9K5A@mail.gmail.com>
[not found] ` <CAKgNAkhuGYKtUKkm2+wU+TwQb6iZ+EmnLDdr4qg4fWHJyL9K5A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-23 19:54 ` [PATCH v3 1/1] ioctl-fat.2: new manpage for the ioctl fat API Heinrich Schuchardt
2015-01-23 19:54 ` Heinrich Schuchardt
2015-02-03 8:25 ` Michael Kerrisk (man-pages)
2015-02-03 8:51 ` OGAWA Hirofumi [this message]
2015-02-03 8:51 ` OGAWA Hirofumi
[not found] ` <87k2zze5tg.fsf-UIVanBePwB70ZhReMnHkpc8NsWr+9BEh@public.gmane.org>
2015-02-03 9:24 ` Michael Kerrisk (man-pages)
2015-02-03 9:24 ` Michael Kerrisk (man-pages)
2015-02-03 9:44 ` OGAWA Hirofumi
2015-02-03 9:44 ` OGAWA Hirofumi
[not found] ` <87fvane3ch.fsf-UIVanBePwB70ZhReMnHkpc8NsWr+9BEh@public.gmane.org>
2015-02-03 9:54 ` Michael Kerrisk (man-pages)
2015-02-03 9:54 ` Michael Kerrisk (man-pages)
2015-02-03 10:05 ` OGAWA Hirofumi
2015-02-03 10:05 ` OGAWA Hirofumi
2015-02-06 22:10 ` [PATCH 1/1] ioctl_fat.2: d_ino, d_off, return value explained Heinrich Schuchardt
[not found] ` <1423260638-23504-1-git-send-email-xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
2015-02-09 8:12 ` Michael Kerrisk (man-pages)
2015-02-03 8:49 ` [PATCH v3 1/1] ioctl-fat.2: new manpage for the ioctl fat API Andreas Dilger
[not found] ` <5984550D-1518-490C-9A3F-3F9B1FA2EA00-m1MBpc4rdrD3fQ9qLvQP4Q@public.gmane.org>
2015-02-03 9:21 ` Michael Kerrisk (man-pages)
2015-02-03 9:21 ` Michael Kerrisk (man-pages)
[not found] ` <CAKgNAki1EnYx+chg1eouwF54youb_tjQ+hW9Ea_M_=cvccu1nA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-03 9:48 ` Andreas Dilger
2015-02-03 9:48 ` Andreas Dilger
2015-02-03 9:55 ` Michael Kerrisk (man-pages)
2015-02-03 10:10 ` OGAWA Hirofumi
2015-02-03 10:10 ` OGAWA Hirofumi
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=87k2zze5tg.fsf@mail.parknet.co.jp \
--to=hirofumi@mail.parknet.co.jp \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
--cc=xypron.glpk@gmx.de \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.