chickadee » 9p » create

create message fid-value reply! error!procedure

This corresponds to a 9P Tcreate request. The message is a list of four elements, the fid of the directory in which to create the new object, the name, the permissions, and the access mode for the new object. fid-value is the value bound to the parent directory fid.

If the creation succeeds, the fid value should be mutated into the initial state of the new file, and reply! should be called with a list of two elements, the QID of the new file and the desired I/O block size in bytes.

If it fails, error! should be called with a suitable error string.

The default implementation calls error! with a message stating that creation is not supported.