This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Charlie, > Thanks for your recommadation. > > Our users (LDM version 6.9.8) reported that while they tried to send > zero-sized data-products, an error message was showed: > > ldmsend ERROR: Couldn't memory-map file [ldmsend.c:179] > ldmsend ERROR: Couldn't send file "xxx" to LDM [ldmsend.c: 311] > > Does this result from MD5 checksum? Upon further investigation, it looks like I made a mistake in my previous answer. Sorry about that. The correct answer is that zero-size data-products are not supported by every aspect of the LDM system on all platforms. In particular, the ldmsend(1) utility cannot handle zero-size files because it uses the mmap(2) system function and that function fails for zero-length regions. For this reason and the reasons I mentioned in my previous reply, I recommend that you avoid zero-length data-products. > Best Regards, > Charlie Chang Regards, Steve Emmerson Ticket Details =================== Ticket ID: BMA-267922 Department: Support LDM Priority: Normal Status: Closed