xfs
[Top] [All Lists]

wbee (sample_hsm) dumped core

To: linux-xfs@xxxxxxxxxxx
Subject: wbee (sample_hsm) dumped core
From: Takayuki Sasaki <sasaki@xxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Sep 2001 20:26:17 +0900
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi,

migin daemon in sample_hsm started with the patch which I
posted, but if I try to read the migrated file then it
stalled. It was caused by
linux-2.4-xfs/cmd/xfstests/dmapi/src/sample_hsm/wbee which was
dispatched by migin dumped core.

I looked into wbee.c and found that handling a pointer is wrong.
Here is the patch.

--- wbee.c      2001/03/07 22:43:23     1.2
+++ wbee.c      2001/09/28 11:05:02
@@ -453,7 +453,7 @@
        size_t           hlen, 
        dm_token_t       token)
 {
-       dm_region_t     *rgn;
+       dm_region_t     *rgn, *sv_rgn;
        u_int            nregions, nret;
        u_int            exact_flag;
        int              i;
@@ -502,6 +502,8 @@
                }
        }
 
+       sv_rgn = rgn;
+
        /*
         * Clear all the managed regions
         */
@@ -511,6 +513,8 @@
                rgn->rg_flags  = DM_REGION_NOEVENT;
                rgn++;
        }
+       rgn = sv_rgn;
+
        error = dm_set_region(sid, hanp, hlen, token, nregions, rgn, 
                                &exact_flag);
        if (error == -1) {



And, finally, I should like to report that I could migrate /
recall the file data on the XFS filesystem using sample_hsm
tools with these 3 patches.

Cheers,

Takayuki


<Prev in Thread] Current Thread [Next in Thread>