NetBSD-Bugs archive

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

Re: kern/41068: tmpfs assertion



The following reply was made to PR kern/41068; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/41068: tmpfs assertion
Date: Mon, 6 Apr 2009 01:07:12 +0200

 On Sun, Apr 05, 2009 at 05:05:05AM +0000, David Holland wrote:
 >   : static __inline
 >   : off_t
 >   : tmpfs_dircookie(struct tmpfs_dirent *de)
 >   : {
 >   :         off_t cookie;
 >   : 
 >   :         cookie = ((off_t)(uintptr_t)de >> 1) & 0x7FFFFFFF;
 >   :         KASSERT(cookie != TMPFS_DIRCOOKIE_DOT);
 >  
 >  This cookie scheme is clearly not workable.
 >  
 >  Why doesn't it just assign sequence numbers to each node or something?
 
 Because Linux compat would fall apart with that rather badly.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index