Revision 4cdc0789
b/hw/9pfs/virtio-9p.c | ||
---|---|---|
983 | 983 |
err += offset; |
984 | 984 |
trace_v9fs_attach_return(pdu->tag, pdu->id, |
985 | 985 |
qid.type, qid.version, qid.path); |
986 |
s->root_fid = fid; |
|
987 |
/* disable migration */ |
|
988 |
error_set(&s->migration_blocker, QERR_VIRTFS_FEATURE_BLOCKS_MIGRATION, |
|
989 |
s->ctx.fs_root ? s->ctx.fs_root : "NULL", s->tag); |
|
990 |
migrate_add_blocker(s->migration_blocker); |
|
986 |
/* |
|
987 |
* disable migration if we haven't done already. |
|
988 |
* attach could get called multiple times for the same export. |
|
989 |
*/ |
|
990 |
if (!s->migration_blocker) { |
|
991 |
s->root_fid = fid; |
|
992 |
error_set(&s->migration_blocker, QERR_VIRTFS_FEATURE_BLOCKS_MIGRATION, |
|
993 |
s->ctx.fs_root ? s->ctx.fs_root : "NULL", s->tag); |
|
994 |
migrate_add_blocker(s->migration_blocker); |
|
995 |
} |
|
991 | 996 |
out: |
992 | 997 |
put_fid(pdu, fidp); |
993 | 998 |
out_nofid: |
Also available in: Unified diff