Hi, On Thursday 16 November 2006 19:19, Rick Mann wrote: > I've noticed there are two nvpair_alloc_system.c files. One, in > libnvpair, is dated 2004. The other, in nvpair, is dated 2006 and has > more code in it. > > Which one is the right one?
If you search for nvpair_alloc_system.c in OpenGrok, there will be 3 results under /onnv/onnv-gate/: /onnv/onnv-gate/usr/src/lib/libnvpair/ - libnvpair - name-value pair library /onnv/onnv-gate/usr/src/stand/lib/nvpair/ - Stand-alone (booting) code /onnv/onnv-gate/usr/src/uts/common/os/ - Core Operating System The description OpenGrok gives you after the directory should give you some hints as to the version you should use. So, since you are porting the libnvpair userspace library, you should use the file in /usr/src/lib/libnvpair. You will notice that OpenSolaris has more or less the following structure: /usr/src/lib: Userspace libraries. /usr/src/cmd: Userspace programs. /usr/src/uts: Kernel code. /usr/src/common: Code which is common to userspace and kernel. In case you'll still have some doubts, I have put my OpenSolaris file copy script at http://www.wizy.org/files/copysolaris.sh If you take a look at that script, you'll see all the files that you might need in porting ZFS (except the kernel part, which I haven't finished porting yet). Have fun ;)