On Sep 13, 2010, at 4:42 PM, Stephan Ferraro wrote:
> It seems to hang on zfs_ioctl with the parameter ZFS_IOC_POOL_IMPORT:
> if (zfs_ioctl(hdl, ZFS_IOC_POOL_IMPORT, &zc) != 0) {
this is expected.
I think the best option for you is to pick up latest SchilliX and import pool
readonly.
Victor
> So I guess I have no to debug the ZFS FUSE daemon to find out where is the
> importing problem?
>
>
> gdb trace output:
>
> Breakpoint 5, zpool_import_props (hdl=0x685000, config=0x686e38, newname=0x0,
> props=0x0, importfaulted=B_FALSE) at lib/libzfs/libzfs_pool.c:1455
> 1455 {
> (gdb)
> 1456 zfs_cmd_t zc = { 0 };
> (gdb)
> 1458 nvlist_t *nvi = NULL;
> (gdb)
> 1465 verify(nvlist_lookup_string(config, ZPOOL_CONFIG_POOL_NAME,
> (gdb)
> 1468 (void) snprintf(errbuf, sizeof (errbuf), dgettext(TEXT_DOMAIN,
> (gdb)
> 1471 if (newname != NULL) {
> (gdb)
> 1478 thename = origname;
> (gdb)
> 1481 if (props) {
> (gdb)
> 1496 (void) strlcpy(zc.zc_name, thename, sizeof (zc.zc_name));
> (gdb)
> 1498 verify(nvlist_lookup_uint64(config, ZPOOL_CONFIG_POOL_GUID,
> (gdb)
> 1501 if (zcmd_write_conf_nvlist(hdl, &zc, config) != 0) {
> (gdb)
> 1505 returned_size = zc.zc_nvlist_conf_size + 512;
> (gdb)
> 1506 if (zcmd_alloc_dst_nvlist(hdl, &zc, returned_size) != 0) {
> (gdb)
> 1511 zc.zc_cookie = (uint64_t)importfaulted;
> (gdb)
> 1512 ret = 0;
> (gdb)
> 1513 if (zfs_ioctl(hdl, ZFS_IOC_POOL_IMPORT, &zc) != 0) {
> (gdb)
> zfsfuse_ioctl_read_loop(): file descriptor closed
> 1516 (void) zcmd_read_dst_nvlist(hdl, &zc, &nvi);
> (gdb)
> --
> This message posted from opensolaris.org
> _______________________________________________
> zfs-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/zfs-code
_______________________________________________
zfs-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-code