This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


RE: [Xen-devel] iSCSI root

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: RE: [Xen-devel] iSCSI root
From: James Harper <JamesH@xxxxxxxxxxxxxxxx>
Date: Sun, 29 Aug 2004 11:17:48 +1000
Cc: <brianw@xxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 29 Aug 2004 02:27:02 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: <E1C1E7P-0005ME-00@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <E1C1E7P-0005ME-00@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Thread-index: AcSNZf8QNX4UdfKTTKuOKg30c+lK7w==
Thread-topic: [Xen-devel] iSCSI root
i cut'n'pasted them out of unistd.h in 2.6.7. appears to compile fine now. thanks

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 It tells me this:
> make -C /lib/modules/ SUBDIRS=/usr/src/iscsi-init-4.0.1 modules
> make[1]: Entering directory `/usr/src/xeno-unstable.bk/linux-'
>   Building modules, stage 2.
> *** 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-'
> 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?
<Prev in Thread] Current Thread [Next in Thread>