dummy implmentation of txattrcreate
This commit is contained in:
parent
82fd344ad9
commit
89af9814a0
14
lib/9p.js
14
lib/9p.js
|
@ -582,9 +582,17 @@ Virtio9p.prototype.ReceiveRequest = function (index, GetByte) {
|
|||
this.SendReply(0, index);
|
||||
break;
|
||||
|
||||
case 32:
|
||||
this.SendError(tag, "Operation i not supported", ENOTSUPP);
|
||||
case 32: // txattrcreate
|
||||
var req = marshall.Unmarshall2(["w", "s", "d", "w"], GetByte);
|
||||
var fid = req[0];
|
||||
var name = req[1];
|
||||
var attr_size = req[2];
|
||||
var flags = req[3];
|
||||
message.Debug("[txattrcreate]: fid=" + fid + " name=" + name + " attr_size=" + attr_size + " flags=" + flags);
|
||||
this.BuildReply(id, tag, 0);
|
||||
this.SendReply(0, index);
|
||||
//this.SendError(tag, "Operation i not supported", EINVAL);
|
||||
//this.SendReply(0, index);
|
||||
break;
|
||||
|
||||
case 30: // xattrwalk
|
||||
|
@ -604,7 +612,7 @@ Virtio9p.prototype.ReceiveRequest = function (index, GetByte) {
|
|||
marshall.Marshall(["d"], [length], this.replybuffer, 7);
|
||||
this.BuildReply(id, tag, 8);
|
||||
this.SendReply(0, index);
|
||||
break;
|
||||
break;
|
||||
|
||||
default:
|
||||
message.Debug("Error in Virtio9p: Unknown id " + id + " received");
|
||||
|
|
Loading…
Reference in a new issue