What is the easiest way to increase the maximum size of a mapped file? I have come up with this outline (untested) but thought I would ask first if there is a _jmf_ function that already does it.
grow =: 4 : 0 'vname fname' =: y create_jmf_ '/tmp/tmp';x NB. new mapped file with target size map_jmf_ tmp;'/tmp/tmp' NB. map it ". 'tmp =. ', vname NB. copy the data unmap_jmf_ vname NB. close the mappings unmap_jmf_ tmp NB. % 1!:55 <fname NB. delete the old file NB. want to rename the temp file to fname but could not find NB. mv equivalent in http://www.jsoftware.com/help/dictionary/dx001.htm ) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
