Ejemplo n.º 1
0
            /// <exception cref="System.IO.IOException"/>
            public virtual void WriteINodeReferenceWithCount(INodeReference.WithCount withCount
                                                             , DataOutput @out, bool writeUnderConstruction)
            {
                INode referred      = withCount.GetReferredINode();
                long  id            = withCount.GetId();
                bool  firstReferred = !referenceMap.Contains(id);

                @out.WriteBoolean(firstReferred);
                if (firstReferred)
                {
                    FSImageSerialization.SaveINode2Image(referred, @out, writeUnderConstruction, this
                                                         );
                    referenceMap[id] = withCount;
                }
                else
                {
                    @out.WriteLong(id);
                }
            }