Detaches from the current vdata, terminating further access to that vdata.
Return value
Returns SUCCEED (or 0) if successful and FAIL (or -1) otherwise.
Description
VSdetach detaches from the vdata identified by the parameter vdata_id and updates the vdata information in the file if there are any changes. All memory used for that vdata is freed.
The vdata_id identifier should not be used after that vdata is detached.