Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-22-2008, 04:52 PM   #1
Registered: Feb 2007
Distribution: Kubuntu, it's obese barely-usable sibling, Ubuntu
Posts: 142

Rep: Reputation: 15
Compiling novfs 3.0.0-2.7 on Ubuntu 8.04.1, kernel 2.6.22


I'm in the process of converting the RPMs Novell provides for their linux client to debs for installation on Ubuntu 8.04.1 systems for a school that already uses Novell on windows boxes. I've been using alien to convert the packages to deb files, then unpacking the debs and tweaking paths and scripts. I should note that I've never really poked around in the kernel before, or in kernel modules, but I've been doing a fair bit of reading on the workings of the VFS.

This was going fine until I tried compiling the kernel modules for novfs -- after editing the mk_novfs script, the compile process starts, but quits early. The setattr function (which is passed dentry and iattr structures) tries accessing the non-existent ia_file field of the iattr structure in the following line:
retVal = Novfs_Truncate_File_Ex(attr->ia_file->private_data, attr->ia_size, session);
where attr is a pointer to a struct inode. I've done lots of Googling since I encountered this last week, and couldn't find much on the deprecated ia_file field, but I'm guessing it's supposed to point to a file structure -- if this is the case, it makes sense to have removed it since inodes aren't always associated with files.

After poking around in the source, it looks like the private_data field of the file contains some sort of file handle data (not exactly sure what though, I wasn't able to find the definition of the type).

I can provide more files if you want, but if you want to download the package I'm working from it's the novell-novfs one from the Novell Linux Client download. My question is, does this look like a problem that would take an experienced kernel hacker to fix, or is there a simpler workaround? I'm also kind of curious as to why the latest version of the client would use a deprecated field -- does SuSe use an old kernel?

One last thing: I am aware of the other, non-official, buggy novell tools, so if you're just replying to tell me to use that, don't bother. I realize that this might be a difficult problem, and even that it might not be possible for someone with my level of experience to fix, but if anyone has any suggestions, I look forward to diving deeper

Thanks for any and all help,

Last edited by sydney-troz; 12-22-2008 at 06:28 PM. Reason: I mistakenly said the setattr function was passed an inode struct -- it's passed a dentry


kernel, novell, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ubuntu Compiling kernel jordanguyoflove Linux - Newbie 1 10-27-2008 03:14 AM
Compiling kernel 2.4.25 on ubuntu 8.04 freddo Linux - Kernel 3 08-27-2008 08:26 PM
Compiling Kernel For Ubuntu? raid517 Ubuntu 2 12-08-2006 09:26 PM
novfs on slackware 10.2: Kern-2.4.31 BarryM45 Slackware 3 03-10-2006 04:04 PM
Error during compiling 2.6.9 kernel on ubuntu 5.10 ozzy_linux Ubuntu 1 02-17-2006 02:11 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration