Hello Mark

I created s0 as you suggested:

partition> print
Current partition table (unnamed):
Total disk cylinders available: 54823 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0        usr    wm       3 - 54822      419.94GB    (54820/0/0) 880683300
  1 unassigned    wm       0                0         (0/0/0)             0
  2     backup    wu       0 - 54822      419.97GB    (54823/0/0) 880731495
  3 unassigned    wm       0                0         (0/0/0)             0
  4 unassigned    wm       0                0         (0/0/0)             0
  5 unassigned    wm       0                0         (0/0/0)             0
  6 unassigned    wm       0                0         (0/0/0)             0
  7 unassigned    wm       0                0         (0/0/0)             0
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 alternates    wm       1 -     2       15.69MB    (2/0/0)         32130

I still get the 'invalid argument':

% pfexec zpool create mypool c4d0s0
cannot create 'mypool': invalid argument for this pool operation

There were a lot more IOCTLs issued this time and a few accesses with extremely large addresses:

WARNING: ERROR (TMS: pflash.c pflash_strategy ln:996 ) Access past the end of device! (18014398509480448 >= 880791552) WARNING: ERROR (TMS: pflash.c pflash_strategy ln:996 ) Access past the end of device! (18014398509480960 >= 880791552) WARNING: ERROR (TMS: pflash.c pflash_strategy ln:996 ) Access past the end of device! (18014398509480448 >= 880791552) WARNING: ERROR (TMS: pflash.c pflash_strategy ln:996 ) Access past the end of device! (18014398509480960 >= 880791552)

Also a CDROMREADOFFSET IOCTL was issued to the device. This seems weird since my driver returns DKC_MD for the ctype when issued DKIOCINFO.

Could my driver somehow be advertising the disk as a CDROM device?

Thanks,
Josh


On 01/14/2010 03:20 PM, Mark J Musante wrote:
On Thu, 14 Jan 2010, Josh Morris wrote:

Hello List,

I am porting a block device driver(for a PCIe NAND flash disk driver) from OpenSolaris to Solaris 10. On Solaris 10 (10/09) I'm having an issues creating a zpool with the disk. Apparently I have an 'invalid argument' somewhere:

% pfexec zpool create mypool c4d0p0

Instead of p0, can you use format to create an s0 that takes up the whole partition?


Regards,
markm


_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to