about summary refs log tree commit homepage
path: root/mgmt_fn.c
diff options
context:
space:
mode:
Diffstat (limited to 'mgmt_fn.c')
-rw-r--r--mgmt_fn.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mgmt_fn.c b/mgmt_fn.c
index 0ca91f6..f84fcf5 100644
--- a/mgmt_fn.c
+++ b/mgmt_fn.c
@@ -42,10 +42,13 @@ void mog_mgmt_fn_digest(struct mog_mgmt *mgmt, char *buf)
 
         if (!path) return;
 
-        mgmt->forward = mog_file_open_read(mgmt->svc, path);
+        mgmt->forward = mog_file_open_read(mgmt->svc, mgmt->mog_devid, path);
         if (mgmt->forward) {
                 struct mog_file *file = &mgmt->forward->as.file;
 
+                /* use fsck queue instead */
+                mog_file_post(mgmt->forward);
+
                 mog_fadv_noreuse(mgmt->forward->fd, 0, 0 /* ALL */);
                 mog_fadv_sequential(mgmt->forward->fd, 0, 0 /* ALL */);
                 mog_digest_init(&file->digest, mgmt->alg);
@@ -140,7 +143,7 @@ void mog_mgmt_fn_size(struct mog_mgmt *mgmt, char *buf)
 
         if (!path) return;
 
-        if (mog_stat(mgmt->svc, path, &sb) == 0) {
+        if (mog_stat_req(mgmt->svc, mgmt->mog_devid, path, &sb) == 0) {
                 long long size = (long long)sb.st_size;
 
                 iov[1].iov_base = tmp;