1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

error return assignment was less than ideal. Fix the part that caused

warnings to be the same as the ffs code.  Previously, any error from
the UFS_UPDATE() call was lost (I think).
This commit is contained in:
Peter Wemm 1998-10-29 09:44:12 +00:00
parent 3a389eff91
commit 91ecc00e71
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40721
2 changed files with 4 additions and 4 deletions

View File

@ -257,8 +257,8 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length);
for (i = NDADDR - 1; i > lastblock; i--)
oip->i_db[i] = 0;
oip->i_flag |= IN_CHANGE | IN_UPDATE;
if (error = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT))
allerror = error;
allerror = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT);
/*
* Having written the new inode to disk, save its new configuration
* and put back the old block pointers long enough to process them.

View File

@ -257,8 +257,8 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length);
for (i = NDADDR - 1; i > lastblock; i--)
oip->i_db[i] = 0;
oip->i_flag |= IN_CHANGE | IN_UPDATE;
if (error = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT))
allerror = error;
allerror = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT);
/*
* Having written the new inode to disk, save its new configuration
* and put back the old block pointers long enough to process them.