This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch master
in repository gfs2-utils.
commit b9ce1906979c82eb784e0939fdda794afef4377f
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Tue Dec 10 19:36:36 2019 +0000
restoremeta: Don't seek in restore_header()
This is the first time we read the file so there's no need to seek to
offset 0. The eventual goal here is to have restoremeta not seek at all
as (de)compression libraries do not support it, or emulate it slowly.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/edit/savemeta.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/gfs2/edit/savemeta.c b/gfs2/edit/savemeta.c
index f77c6bf..ad0c537 100644
--- a/gfs2/edit/savemeta.c
+++ b/gfs2/edit/savemeta.c
@@ -888,7 +888,6 @@ static int read_header(struct metafd *mfd, struct savemeta_header
*smh)
size_t rs;
struct savemeta_header smh_be = {0};
- mfd->seek(mfd, 0, SEEK_SET);
rs = mfd->read(mfd, &smh_be, sizeof(smh_be));
if (rs == -1) {
perror("Failed to read savemeta file header");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date