diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-23 16:06:47 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-23 16:06:47 -0500 |
commit | 8ade4e21303eb4feed76a9d8b26545f65dcc708a (patch) | |
tree | 09aab4dd68a90e07f038013f2836c4e1a10b81d7 /libk3b/tools/libisofs | |
parent | 1c60648ff88c6ea1f7dc5257154d6022cb2f97a1 (diff) | |
download | k3b-8ade4e21303eb4feed76a9d8b26545f65dcc708a.tar.gz k3b-8ade4e21303eb4feed76a9d8b26545f65dcc708a.zip |
Update libisofs to read files greater than 2GB
This partially resolves Bug 1111
Diffstat (limited to 'libk3b/tools/libisofs')
-rw-r--r-- | libk3b/tools/libisofs/isofs.cpp | 2 | ||||
-rw-r--r-- | libk3b/tools/libisofs/isofs.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libk3b/tools/libisofs/isofs.cpp b/libk3b/tools/libisofs/isofs.cpp index e5c871b..65f19eb 100644 --- a/libk3b/tools/libisofs/isofs.cpp +++ b/libk3b/tools/libisofs/isofs.cpp @@ -121,7 +121,7 @@ void FreeBootTable(boot_head *boot) { boot->defentry=NULL; } -int BootImageSize(readfunc* read,int media,sector_t start,int len,void* udata) { +int BootImageSize(readfunc* read,int media,sector_t start,long long len,void* udata) { int ret; switch(media & 0xf) { diff --git a/libk3b/tools/libisofs/isofs.h b/libk3b/tools/libisofs/isofs.h index f284903..8dde726 100644 --- a/libk3b/tools/libisofs/isofs.h +++ b/libk3b/tools/libisofs/isofs.h @@ -23,7 +23,7 @@ #include "iso_fs.h" #include "el_torito.h" -typedef long sector_t; +typedef long long sector_t; typedef struct _rr_entry { int len; /* length of structure */ @@ -48,7 +48,7 @@ typedef struct _rr_entry { int re; /* relocated */ char z_algo[2]; /* zizofs algorithm */ char z_params[2]; /* zizofs parameters */ - int z_size; /* zizofs real_size */ + long long z_size; /* zizofs real_size */ } rr_entry; typedef struct _iso_vol_desc { @@ -74,7 +74,7 @@ typedef struct _boot_head { /** * this callback function needs to read 'len' sectors from 'start' into 'buf' */ -typedef int readfunc(char *buf,sector_t start, int len,void *); +typedef int readfunc(char *buf,sector_t start, long long len,void *); /** * ProcessDir uses this callback @@ -135,7 +135,7 @@ int JolietLevel(struct iso_volume_descriptor *ivd); /** * Returns the size of the boot image (in 512 byte sectors) */ -int BootImageSize(readfunc *read,int media,sector_t start,int len,void *udata); +int BootImageSize(readfunc *read,int media,sector_t start,long long len,void *udata); /** * Frees the boot catalog entries in 'boot'. If you ever called ReadBootTable, |