aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2012-07-04 15:16:09 +0200
committerPaul Kocialkowski <contact@paulk.fr>2012-07-04 17:53:02 +0200
commit0ec570aca028a4b82f761bfd376fd705250a812c (patch)
treeadb406aef2e81f02bc51e3cf5b6d865cd21775cf
parent31978622974ff3ef4b69b5b830a0a50c20c770cb (diff)
downloadexternal_libsamsung-ipc-0ec570aca028a4b82f761bfd376fd705250a812c.zip
external_libsamsung-ipc-0ec570aca028a4b82f761bfd376fd705250a812c.tar.gz
external_libsamsung-ipc-0ec570aca028a4b82f761bfd376fd705250a812c.tar.bz2
RFS: Changed chunk size to 0x1000 when reading nv_data
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
-rw-r--r--samsung-ipc/rfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/samsung-ipc/rfs.c b/samsung-ipc/rfs.c
index fd86a7a..8c6005f 100644
--- a/samsung-ipc/rfs.c
+++ b/samsung-ipc/rfs.c
@@ -146,7 +146,7 @@ void nv_data_md5_generate(struct ipc_client *client)
ipc_client_log(client, "nv_data_md5_generate: generating MD5 hash\n");
nv_data_p=ipc_file_read(client, nv_data_path(client),
- NV_DATA_SIZE, NV_DATA_SIZE / 10);
+ NV_DATA_SIZE, 0x1000);
nv_data_md5_compute(nv_data_p, NV_DATA_SIZE, nv_data_md5_hash);
free(nv_data_p);
@@ -224,7 +224,7 @@ void nv_data_backup_create(struct ipc_client *client)
/* Read the content of the backup file. */
nv_data_p=ipc_file_read(client, nv_data_path(client),
- NV_DATA_SIZE, NV_DATA_SIZE / 10);
+ NV_DATA_SIZE, 0x1000);
/* Compute the backup file MD5 hash. */
nv_data_md5_compute(nv_data_p, NV_DATA_SIZE, nv_data_md5_hash);
@@ -295,7 +295,7 @@ nv_data_backup_create_write:
}
/* Read the newly-written .nv_data.bak. */
- nv_data_bak_p=ipc_file_read(client, nv_data_bak_path(client), NV_DATA_SIZE, NV_DATA_SIZE / 10);
+ nv_data_bak_p=ipc_file_read(client, nv_data_bak_path(client), NV_DATA_SIZE, 0x1000);
/* Compute the MD5 hash for nv_data.bin. */
nv_data_md5_compute(nv_data_bak_p, NV_DATA_SIZE, nv_data_md5_hash);
@@ -384,7 +384,7 @@ void nv_data_backup_restore(struct ipc_client *client)
memset(nv_data_md5_hash_string, 0, MD5_STRING_SIZE);
/* Read the content of the backup file. */
- nv_data_bak_p=ipc_file_read(client, nv_data_bak_path(client), NV_DATA_SIZE, NV_DATA_SIZE / 10);
+ nv_data_bak_p=ipc_file_read(client, nv_data_bak_path(client), NV_DATA_SIZE, 0x1000);
/* Compute the backup file MD5 hash. */
nv_data_md5_compute(nv_data_bak_p, NV_DATA_SIZE, nv_data_md5_hash);
@@ -456,7 +456,7 @@ nv_data_backup_restore_write:
}
/* Read the newly-written nv_data.bin. */
- nv_data_p=ipc_file_read(client, nv_data_path(client), NV_DATA_SIZE, NV_DATA_SIZE / 10);
+ nv_data_p=ipc_file_read(client, nv_data_path(client), NV_DATA_SIZE, 0x1000);
/* Compute the MD5 hash for nv_data.bin. */
nv_data_md5_compute(nv_data_p, NV_DATA_SIZE, nv_data_md5_hash);
@@ -569,7 +569,7 @@ void nv_data_md5_check(struct ipc_client *client)
memset(nv_data_md5_hash_read, 0, MD5_STRING_SIZE);
memset(nv_data_md5_hash_string, 0, MD5_STRING_SIZE);
- nv_data_p=ipc_file_read(client, nv_data_path(client), NV_DATA_SIZE, 1024);
+ nv_data_p=ipc_file_read(client, nv_data_path(client), NV_DATA_SIZE, 0x1000);
data_p=nv_data_p;
nv_data_md5_compute(data_p, NV_DATA_SIZE, nv_data_md5_hash);