DragonFly bugs List (threaded) for 2008-05
DragonFly BSD
DragonFly bugs List (threaded) for 2008-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Seekdir Bug


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Sun, 04 May 2008 01:00:20 +0200

Matthew Dillon wrote:
    And, stupid me, when I created the dirent structure I didn't add enough
    reserved fields to hold what we need, which is a full blown cookie for
    each entry.  We only have 40 bits worth of unused fields and we need
    64 bits.  I don't dare change that structure now, it would require
    every single application ever written to be recompiled.

Actually this is not true. The dirent structure is variable-sized anyways, because it is only as long as necessary to store the name.


We could simply put the cookie after the name and include the cookie length in the namelen field, so that _DIRENT_NEXT will keep working.

Of course this is only needed for binary compatibility. I think 2.0-RELEASE would be a good opportunity to have a "break" in binary compatibility, i.e. to bump all library versions. We could then introduce a new syscall returning nice cookies :)

cheers
  simon

--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]