[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] iSCSI root



i cut'n'pasted them out of unistd.h in 2.6.7. appears to compile fine now. thanks
 
James


From: Keir Fraser
Sent: Sun 29/08/2004 11:04 AM
To: James Harper
Cc: brianw@xxxxxxxxxxxx; xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] iSCSI root

That's a rather odd thing to do, as it's not like there's a generic
EXPORT_SYMBOL'ed way to e.g. open a file. I can't imagine why they'd
have removed all wrappers except execve.

Easiest workaround is just to roll your own wrappers around the
syscalls using the _syscall* macros. 

 -- Keir


> Speaking of compiling, iscsi-init doesn't seem to compile for me under 2.6.8.1. It tells me this:
> 
> make -C /lib/modules/2.6.8.1-xenU/build SUBDIRS=/usr/src/iscsi-init-4.0.1 modules
> make[1]: Entering directory `/usr/src/xeno-unstable.bk/linux-2.6.8.1-xenU'
>   Building modules, stage 2.
>   MODPOST
> *** Warning: "close" [/usr/src/iscsi-init-4.0.1/iscsi_init.ko] undefined!
> *** Warning: "read" [/usr/src/iscsi-init-4.0.1/iscsi_init.ko] undefined!
> *** Warning: "open" [/usr/src/iscsi-init-4.0.1/iscsi_init.ko] undefined!
> make[1]: Leaving directory `/usr/src/xeno-unstable.bk/linux-2.6.8.1-xenU'
> 
> and then of course close, read, and open are missing symbols.
> 
> it looks like the definitions from <asm/unistd.h> have been taken away between 2.6.7 and 2.6.8. Any idea's what should replace them? What should kernel code use for opening, reading, and closing files?

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.