[Tux3] Bad entry->rec_len in _tux_create_entry

Ma Can macan at ncic.ac.cn
Sat Jan 3 18:24:08 PST 2009


Sorry. Ignore this patch. Actually it is just another uninitialized
structure(*entry = (tux_dirent){ .rec_len =
tux_rec_len_to_disk(blocksize) }) on my GCC 4.0.0 box.

Ma Can wrote, Sent: 2009-1-4 9:58:
> Working with Tux3 in kernel, after I executed
> 
> [tux3_root]$ touch a
> 
> I got: "entry: inum e, rec_len 0, name_len 1, type 1, name a"
> 
> The rec_len is _ZERO_, and it will lead to a tux_error in
> _tux_find_entry(_tux_find_entry: zero length entry at <d:0>). When we
> create the first entry in the root directory, name_len is 0. Then,
> newent and entry point to the same address, we modify the rec_len
> _TWICE_ from right to wrong.
> 

-- 
Ma Can

_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://mailman.tux3.org/cgi-bin/mailman/listinfo/tux3



More information about the Tux3 mailing list