Skip to contentSkip to conversation

problem with hostfs in statfs... (2.6.7)

uml-devel Eddy Yuniar 2 participants 2 messages Jul 8, 2004 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

I''ve runnning a problem when invoking df from the shell.... and got kernel panic...
the problem is in hostfs_statfs when calling do_statfs, parameter sf->f_spare should be substituted with sf->f_frsize, because there is a change in struct kstatfs with addition f_frsize that using one of f_spare array.... so array f_spare now only have size 5....

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw

hello Eddy

Quoted 2 lines

I''ve runnning a problem when invoking df from the shell.... and got kernel panic...

:-) You got the stack trace then?

Quoted 4 lines

the problem is in hostfs_statfs when calling do_statfs, parameter sf->f_spare should be substituted with sf->f_frsize, because there is a change in struct kstatfs with addition f_frsize that using one of f_spare array.... so array f_spare now only have size 5....

nice thinking.......creating a small patch for this won't be difficult right?

NB: Are you from ITS Surabaya?

regards

Mulyadi
===========================================================================================
Netkuis Instan untuk wilayah Bandung (kode area 022) - SD,SMP,SMA berhadiah total puluhan juta rupiah... periode I dimulai 1 April 2004
===========================================================================================

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel