Пример #1
0
 /// <summary>
 /// Serialize a
 /// <see cref="INodeSymlink"/>
 /// node
 /// </summary>
 /// <param name="node">The node to write</param>
 /// <param name="out">
 /// The
 /// <see cref="System.IO.DataOutput"/>
 /// where the fields are written
 /// </param>
 /// <exception cref="System.IO.IOException"/>
 private static void WriteINodeSymlink(INodeSymlink node, DataOutput @out)
 {
     WriteLocalName(node, @out);
     @out.WriteLong(node.GetId());
     @out.WriteShort(0);
     // replication
     @out.WriteLong(0);
     // modification time
     @out.WriteLong(0);
     // access time
     @out.WriteLong(0);
     // preferred block size
     @out.WriteInt(-2);
     // # of blocks
     Text.WriteString(@out, node.GetSymlinkString());
     WritePermissionStatus(node, @out);
 }