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:
f6abb23
)
zero length means whole file
author
Andrew Tridgell
<tridge@samba.org>
Mon, 18 Aug 2008 07:27:10 +0000
(17:27 +1000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 18 Aug 2008 07:27:10 +0000
(17:27 +1000)
hacksm_migrate.c
patch
|
blob
|
history
diff --git
a/hacksm_migrate.c
b/hacksm_migrate.c
index 193455ac471e3533fd5466088bea1e4e5409cfa2..653b6aafaa6c87b45459ed04c9a262458177ae7f 100644
(file)
--- a/
hacksm_migrate.c
+++ b/
hacksm_migrate.c
@@
-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, ®ion, &exactFlag);