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: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/41068: tmpfs assertion
Date: Sun, 5 Apr 2009 05:02:56 +0000

 On Tue, Mar 24, 2009 at 10:05:00PM +0000, joerg%NetBSD.org@localhost wrote:
  > kernel diagnostic assertion "cookie != TMPFS_DIRCOOKIE_DOT" failed: file 
"../../../../fs/tmpfs/tmpfs.h", line 144
 
 from the code:
 
  : #define     TMPFS_DIRCOOKIE_DOT     0
  :   :
  : 
  : 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?
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index