Problem with libtar api and large files
Hello,
I've written a sample application using the tar library. But I have difficulties with large files: Code:
tar_append_tree("/video/testfolder", "testfolder"): Value too large for defined data type Here is the code I am using (it's basically the code from libtar.c that comes as example with libtar): Code:
int create(char *tarFile, char *rootDir, libtar_list_t *l) { |
I suspect that the error is coming from an open call which gets called by the lib indirectly. 4.8gb is bigger than what a long (assuming long is 32 bits) can hold and may require that the library uses O_LARGEFILE
in the open call flags. So I am assuming "Value too large for defined data type" is in relation to the off_t type. Try and supply a tartype_t which has a function pointer to open in which you can supply the flag. |
All times are GMT -5. The time now is 04:18 AM. |