zero length means whole file
authorAndrew Tridgell <tridge@samba.org>
Mon, 18 Aug 2008 07:27:10 +0000 (17:27 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 18 Aug 2008 07:27:10 +0000 (17:27 +1000)
hacksm_migrate.c

index 193455ac471e3533fd5466088bea1e4e5409cfa2..653b6aafaa6c87b45459ed04c9a262458177ae7f 100644 (file)
@@ -201,7 +201,7 @@ static int hsm_migrate(const char *path)
 
        /* mark the whole file as offline, including parts beyond EOF */
        region.rg_offset = 0;
-       region.rg_size   = (dm_size_t)~0ULL;
+       region.rg_size   = 0; /* zero means the whole file */
        region.rg_flags  = DM_REGION_WRITE | DM_REGION_READ;
 
        ret = dm_set_region(dmapi.sid, hanp, hlen, dmapi.token, 1, &region, &exactFlag);