* Usage of filetype
@ 2002-01-19 18:27 Hans-Joachim Baader
0 siblings, 0 replies; 2+ messages in thread
From: Hans-Joachim Baader @ 2002-01-19 18:27 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 485 bytes --]
Hi,
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)?
Thanks,
hjb
--
Pro-Linux - Germany's largest volunteer Linux support site
http://www.pro-linux.de/ Public Key ID 0x3DDBDDEA
[-- Attachment #2: Type: application/pgp-signature, Size: 200 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <20020119192756.Z3627@mandel.hjb.de.suse.lists.linux.kernel>]
* Re: Usage of filetype
[not found] <20020119192756.Z3627@mandel.hjb.de.suse.lists.linux.kernel>
@ 2002-01-19 20:45 ` Andi Kleen
0 siblings, 0 replies; 2+ messages in thread
From: Andi Kleen @ 2002-01-19 20:45 UTC (permalink / raw)
To: Hans-Joachim Baader; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-19 20:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-19 18:27 Usage of filetype Hans-Joachim Baader
[not found] <20020119192756.Z3627@mandel.hjb.de.suse.lists.linux.kernel>
2002-01-19 20:45 ` Andi Kleen
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®