Subject: Re: tmpfs: Internal representation of data
To: Matt Thomas <matt@3am-software.com>
From: =?iso-8859-1?q?Love_H=F6rnquist_=C5strand?= <lha@kth.se>
List: tech-kern
Date: 07/19/2005 22:25:09
--=-=-=


Matt Thomas <matt@3am-software.com> writes:

>> Suppressing the former (merging it with directory contents,
>> thus becoming something like the FAT) means that
>> implementing hard links becomes very complex, so the
>> separation is worth it.
>
> Directories are just files and should be kept in the format returned
> by getdents(2).

directories can be kept in some more easier manipulated format than
getdents(2) internally. getdent format is easy to generate, but not that
fun to modify. the fs just follow some rules that getdents(2) consumer
expect, like . and .. are the two first entries, and unlink or creat
doesn't reorder the content.

Love


--=-=-=
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (NetBSD)

iQEVAwUAQt1hqto1gLFKFEjAAQLwyAf8Dnpu9Uen8QCF7PejMATtWhd/qqINKx2T
sTNXSR3WX71LwLtzLjzvhlPFW/19EsBmMEg09Gjw+G29Tq9+JezuKoOL6s9O6ehI
zwRK5wYMMbsLqZq+Oj/tCnxKpMXcFl5SHl21X/9Q5HlSIFsG+KTa5O4CBbCraxKa
N6A8aneVuaJ1eYi8nDL5Uy4j40j67ccUfJ74BxI6XWzYoJ8D2dPeSOl9XhVznyh0
auDotgmLQZ1RvxEgduYhTsIuWVanbdiFBT/EkQI6SoW1+kxLPhWMw1udqTqhd4P6
+5menfxK+uKVs6RkZUNOfRoX9w3OWGmGB5R/xBUTFEQ0Wmws8wY/ZQ==
=1mdF
-----END PGP SIGNATURE-----
--=-=-=--