Print this page
11083 support NFS server in zone
Portions contributed by: Dan Kruchinin <dan.kruchinin@nexenta.com>
Portions contributed by: Stepan Zastupov <stepan.zastupov@gmail.com>
Portions contributed by: Joyce McIntosh <joyce.mcintosh@nexenta.com>
Portions contributed by: Mike Zeller <mike@mikezeller.net>
Portions contributed by: Dan McDonald <danmcd@joyent.com>
Portions contributed by: Gordon Ross <gordon.w.ross@gmail.com>
Portions contributed by: Vitaliy Gusev <gusev.vitaliy@gmail.com>
Reviewed by: Rick McNeal <rick.mcneal@nexenta.com>
Reviewed by: Rob Gittins <rob.gittins@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Jason King <jbk@joyent.com>
Reviewed by: C Fraire <cfraire@me.com>
Change-Id: I22f289d357503f9b48a0bc2482cc4328a6d43d16
*** 558,574 ****
bzero(&cs, sizeof (cs));
cs.statusp = &resp->status;
cs.cont = TRUE;
/*
! * Form a reply tag by copying over the reqeuest tag.
*/
resp->tag.utf8string_len = args->tag.utf8string_len;
! resp->tag.utf8string_val = kmem_alloc(resp->tag.utf8string_len,
! KM_SLEEP);
bcopy(args->tag.utf8string_val, resp->tag.utf8string_val,
args->tag.utf8string_len);
/*
* XXX for now, minorversion should be zero
*/
if (args->minorversion != CB4_MINORVERSION) {
--- 558,578 ----
bzero(&cs, sizeof (cs));
cs.statusp = &resp->status;
cs.cont = TRUE;
/*
! * Form a reply tag by copying over the request tag.
*/
resp->tag.utf8string_len = args->tag.utf8string_len;
! if (args->tag.utf8string_len != 0) {
! resp->tag.utf8string_val =
! kmem_alloc(resp->tag.utf8string_len, KM_SLEEP);
bcopy(args->tag.utf8string_val, resp->tag.utf8string_val,
args->tag.utf8string_len);
+ } else {
+ resp->tag.utf8string_val = NULL;
+ }
/*
* XXX for now, minorversion should be zero
*/
if (args->minorversion != CB4_MINORVERSION) {