From: Andi Kleen <ak@suse.de>
To: Hans-Joachim Baader <hjb@pro-linux.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Usage of filetype
Date: 19 Jan 2002 21:45:57 +0100 [thread overview]
Message-ID: <p73adva3w8q.fsf@oldwotan.suse.de> (raw)
In-Reply-To: <20020119192756.Z3627@mandel.hjb.de.suse.lists.linux.kernel>
In-Reply-To: Hans-Joachim Baader's message of "19 Jan 2002 19:27:59 +0100"
Hans-Joachim Baader <hjb@pro-linux.de> writes:
> in the tune2fs manual I found the ext2 option 'filetype'. A file type seems
> to be an 8 bit number, defined in linux/dirent.h in struct dirent64.
> However, I didn't find any further docs about it, and I don't know any
> userspace tools to read/set it. Could anyone please point me to more info
> (or explain if this feature has any use)?
It sets the d_type field in struct dirent on readdir. See
/usr/include/dirent.h in glibc for a list of the types. It's useful
to find out something about a file without reading its inode
(=causing a slow seek of the hard disk). For example it can be used
to optimize find(1) or ls(1).
-Andi
next parent reply other threads:[~2002-01-19 20:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20020119192756.Z3627@mandel.hjb.de.suse.lists.linux.kernel>
2002-01-19 20:45 ` Andi Kleen [this message]
2002-01-19 18:27 Hans-Joachim Baader
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=p73adva3w8q.fsf@oldwotan.suse.de \
--to=ak@suse.de \
--cc=hjb@pro-linux.de \
--cc=linux-kernel@vger.kernel.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: link
Be 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
all inboxes | Powered by JetHome®