Quick dump of lo_truncate support. Not working yet.