Re: linux-2.146 bugs

Nick Zigarovich (lists@sanctity.slip.lm.com)
Sun, 20 Jul 1997 13:58:37 -0400 (EDT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---909304291-790311064-869421517=:264
Content-Type: TEXT/PLAIN; charset=US-ASCII

> I had some problems then i tried to compile the kernel.
>
> Bug 1
>
> I thought that the sysrq error should be fixed in this version.
>

I attached my patched sysrq.c which worked for me when I implimented Ted
Ts'o's suggestion posted to the list (thanks, btw :-).

>
>
> Bug 2
>
> The 2.1.45 problem in in nfsproc is also not fixed.
> I get this message then i try to compile NFS and NFS-Server support.
>

I get the same message. I've had MUCH problems with fs (i'm sure everyone
is so shocked to hear this). I applied patches, where some worked and some
did not.

Right now my biggest problem is with vfat. I have it as a module, and I
get unresolved symbols whenever I try to load it. And here they are:

/lib/modules/2.1.46# depmod -a -e
/lib/modules/2.1.46/fs/vfat.o: unresolved symbol(s)
fat_brelse_Rd854a57b
fat_date_unix2dos_R83fb36a1
fat_notify_change_R4d56e1bb
fat_scan_R9c021d2a
fat_bmap_R33ef3592
fat_dir_operations_R72462ea7
fat_code2uni_R4aeea20c
fat_read_super_Rd859b019
fat_cache_inval_inode_Raa08e707
fat_write_inode_R7c6252d0
fat_put_super_Radf8285e
fat_unlock_creation_R9e32cc5b
fat_readdirx_R8e6025eb
fat_get_entry_R16f7014b
fat_read_inode_R0277100a
fat_parent_ino_R02cd03f3
fat_add_cluster_Rb3150778
fat_statfs_R8b321c42
fat_fs_panic_R45460091
fat_mark_buffer_dirty_Rc909b67c
fat_a2uni_R1e5900dc
fat_lock_creation_R4d85e995
fat_put_inode_R12

I dont know if it will make a difference, but I'm going to recompile the
kernel with vfat support directly instead of a module. I'll post a
one-liner if it works so I won't pollute your mailboxes anymore than I
already have. ;-)

Nick

---909304291-790311064-869421517=:264
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="sysrq.c"
Content-Transfer-Encoding: B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