git.samba.org
/
tridge
/
hacksm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48072a3
)
mark whole file offline
author
root
<root@hsm1n1.VSOFS1.COM>
Sun, 17 Aug 2008 03:13:19 +0000
(13:13 +1000)
committer
root
<root@hsm1n1.VSOFS1.COM>
Sun, 17 Aug 2008 03:13:19 +0000
(13:13 +1000)
hacksm_migrate.c
patch
|
blob
|
history
diff --git
a/hacksm_migrate.c
b/hacksm_migrate.c
index 7a87ab139e10bad752683da34b3be201090cb2f7..3bd6c40a89038bf4fa38c64a594a67b511f1fcb5 100644
(file)
--- a/
hacksm_migrate.c
+++ b/
hacksm_migrate.c
@@
-188,8
+188,9
@@
static int hsm_migrate(const char *path)
goto respond;
}
+ /* mark the whole file as offline, including parts beyond EOF */
region.rg_offset = 0;
- region.rg_size =
st.st_size
;
+ region.rg_size =
(dm_size_t)~0ULL
;
region.rg_flags = DM_REGION_WRITE | DM_REGION_READ;
ret = dm_set_region(dmapi.sid, hanp, hlen, dmapi.token, 1, ®ion, &exactFlag);