sync code with last fixes and improvements from OpenBSD
This commit is contained in:
parent
bf0676207f
commit
8f31919cdb
325 changed files with 2094 additions and 51856 deletions
|
@ -173,7 +173,7 @@ ffs_truncate(struct inode *oip, off_t length, int flags, struct ucred *cred)
|
|||
return (EFBIG);
|
||||
|
||||
uvm_vnp_setsize(ovp, length);
|
||||
oip->i_ci.ci_lasta = oip->i_ci.ci_clen
|
||||
oip->i_ci.ci_lasta = oip->i_ci.ci_clen
|
||||
= oip->i_ci.ci_cstart = oip->i_ci.ci_lastw = 0;
|
||||
|
||||
if (DOINGSOFTDEP(ovp)) {
|
||||
|
@ -210,7 +210,7 @@ ffs_truncate(struct inode *oip, off_t length, int flags, struct ucred *cred)
|
|||
aflags = B_CLRBUF;
|
||||
if (flags & IO_SYNC)
|
||||
aflags |= B_SYNC;
|
||||
error = UFS_BUF_ALLOC(oip, length - 1, 1,
|
||||
error = UFS_BUF_ALLOC(oip, length - 1, 1,
|
||||
cred, aflags, &bp);
|
||||
if (error)
|
||||
return (error);
|
||||
|
@ -566,7 +566,7 @@ ffs_indirtrunc(struct inode *ip, daddr_t lbn, daddr_t dbn,
|
|||
bp->b_flags |= B_INVAL;
|
||||
brelse(bp);
|
||||
}
|
||||
|
||||
|
||||
*countp = blocksreleased;
|
||||
return (allerror);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue