context The DM context. path The logical path. csumtype The wanted checksum type (CS, AD or MD. We can also pass a long checksum name (e.g. checksum.adler32)) csumvalue The wanted checksum value will be written into this string. Make sure it has enough space. maxcksumlen Max allowed length for a checksum, to avoid buffer overflows. pfn Optional: the corresponding replica for which to calculate a checksum forcerecalc True if nonzero. Force recalculation of the checksum (may take long and return EAGAIN) waitsecs Seconds to wait for a checksum to be calculated. Returns EAGAIN if timeouts. Set to 0 for blocking behavior.

context The DM context. path The logical file name. nReplicas The number of entries will be put here. fileReplicas An array with nEntries elements will be stored here. Use dmlite_replicas_free to free it.