Fix an error in dumping large sparse files containing extended attributes.
This commit is contained in:
parent
f183910b97
commit
3ec818266f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167055
@ -688,7 +688,7 @@ ufs2_blksout(union dinode *dp, ufs2_daddr_t *blkp, int frags, ino_t ino,
|
|||||||
else
|
else
|
||||||
spcl.c_addr[j - i] = 0;
|
spcl.c_addr[j - i] = 0;
|
||||||
spcl.c_count = count - i;
|
spcl.c_count = count - i;
|
||||||
if (last && !writingextdata)
|
if (last && count == blks && !writingextdata)
|
||||||
added = appendextdata(dp);
|
added = appendextdata(dp);
|
||||||
writeheader(ino);
|
writeheader(ino);
|
||||||
bp = &blkp[i / tbperdb];
|
bp = &blkp[i / tbperdb];
|
||||||
@ -701,7 +701,7 @@ ufs2_blksout(union dinode *dp, ufs2_daddr_t *blkp, int frags, ino_t ino,
|
|||||||
}
|
}
|
||||||
spcl.c_type = TS_ADDR;
|
spcl.c_type = TS_ADDR;
|
||||||
spcl.c_count = 0;
|
spcl.c_count = 0;
|
||||||
if (last && !writingextdata) {
|
if (last && count == blks && !writingextdata) {
|
||||||
writingextdata = 1;
|
writingextdata = 1;
|
||||||
writeextdata(dp, ino, added);
|
writeextdata(dp, ino, added);
|
||||||
writingextdata = 0;
|
writingextdata = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user