[osol-discuss] Re: ZFS over a layered driver interface

2007-05-25 Thread Shweta Krishnan
Thanks to everyone for their help! yes dtrace did help and I found that in my layered driver, the prop_op entry point had an error in setting the [Ss]ize dynamic property, and apparently that's what ZFS looks for, not just Nblocks! what took me so long in getting to this error was that the

[osol-discuss] Re: ZFS over a layered driver interface

2007-05-18 Thread Shweta Krishnan
I explored this a bit and found that the ldi_ioctl in my layered driver does fail, but fails because of an iappropriate ioctl for device error, which the underlying ramdisk driver's ioctl returns. So doesn't seem like that's an issue at all (since I know the storage pool creation is successful

[osol-discuss] Re: ZFS over a layered driver interface

2007-05-15 Thread Shweta Krishnan
With what Edward suggested, I got rid of the ldi_get_size() error by defining the prop_op entry point appropriately. However, the zpool create still fails - with zio_wait() returning 22. bash-3.00# dtrace -n 'fbt::ldi_get_size:entry{self-t=1;} fbt::ldi_get_size:entry/self-t/{}

[osol-discuss] Re: ZFS over a layered driver interface

2007-05-15 Thread Shweta Krishnan
With what Edward suggested, I got rid of the ldi_get_size() error by defining the prop_op entry point appropriately. However, the zpool create still fails - with zio_wait() returning 22. bash-3.00# dtrace -n 'fbt::ldi_get_size:entry{self-t=1;} fbt::ldi_get_size:entry/self-t/{}

[osol-discuss] Re: ZFS over a layered driver interface

2007-05-14 Thread Shweta Krishnan
I ran zpool with truss, and here is the system call trace. (again, zfs_lyr is the layered driver I am trying to use to talk to the ramdisk driver). When I compared it to a successful zpool creation, the culprit is the last failing ioctl i.e. ioctl(3, ZFS_IOC_CREATE_POOL, address) I tried

[osol-discuss] Re: ZFS over a layered driver interface

2007-05-14 Thread Shweta Krishnan
Thanks Eric and Manoj. Here's what ldi_get_size() returns: bash-3.00# dtrace -n 'fbt::ldi_get_size:return{trace(arg1);}' -c 'zpool create adsl-pool /dev/layerzfsminor1' dtrace: description 'fbt::ldi_get_size:return' matched 1 probe cannot create 'adsl-pool': invalid argument for this pool

[osol-discuss] Re: ZFS over a layered driver interface

2007-05-14 Thread Shweta Krishnan
Thanks Edward. Currently my layered driver does not implement the prop_op(9E) entry point - I didn't realize this was necessary since my layered driver worked fine without it when used over UFS. My layered driver sits above a ramdisk driver. I realized the same problem that you've mentioned

[osol-discuss] ZFS over a layered driver interface

2007-05-13 Thread Shweta Krishnan
Does zfs/zpool support the layered driver interface? I wrote a layered driver with a ramdisk device as the underlying device, and successfully got a UFS file system on the ramdisk to boot via the layered device. I am trying to do the same with a ZFS file system. However, since ZFS file

[osol-discuss] Re: ZFS over a layered driver interface

2007-05-13 Thread Shweta Krishnan
To give more information, here is the kernel log dump when I run: zpool create mypool path to layered device (my layered driver is called zfs_lyr.) May 14 02:19:27 unknown zfs_lyr: [ID 902459 kern.notice] NOTICE: Inside zfs_lyr_open***SYNC May 14 02:19:27 unknown zfs_lyr: [ID 215874