'The only difference between this method and the replication policy
DiskFileWriter method is adding the frag index to the metadata.
:param metadata: dictionary of metadata to be associated with object'

def put(self, metadata):

    fi = None
    cleanup = True
    if (self._extension == '.data'):
        fi = metadata.setdefault('X-Object-Sysmeta-Ec-Frag-Index', self._diskfile._frag_index)
        fi = self.manager.validate_fragment_index(fi)
        self._diskfile._frag_index = fi
        cleanup = False
    super(ECDiskFileWriter, self)._put(metadata, cleanup, frag_index=fi)
