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:
parent
3a389eff91
commit
91ecc00e71
@ -257,8 +257,8 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length);
|
|||||||
for (i = NDADDR - 1; i > lastblock; i--)
|
for (i = NDADDR - 1; i > lastblock; i--)
|
||||||
oip->i_db[i] = 0;
|
oip->i_db[i] = 0;
|
||||||
oip->i_flag |= IN_CHANGE | IN_UPDATE;
|
oip->i_flag |= IN_CHANGE | IN_UPDATE;
|
||||||
if (error = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT))
|
allerror = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT);
|
||||||
allerror = error;
|
|
||||||
/*
|
/*
|
||||||
* Having written the new inode to disk, save its new configuration
|
* Having written the new inode to disk, save its new configuration
|
||||||
* and put back the old block pointers long enough to process them.
|
* and put back the old block pointers long enough to process them.
|
||||||
|
@ -257,8 +257,8 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length);
|
|||||||
for (i = NDADDR - 1; i > lastblock; i--)
|
for (i = NDADDR - 1; i > lastblock; i--)
|
||||||
oip->i_db[i] = 0;
|
oip->i_db[i] = 0;
|
||||||
oip->i_flag |= IN_CHANGE | IN_UPDATE;
|
oip->i_flag |= IN_CHANGE | IN_UPDATE;
|
||||||
if (error = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT))
|
allerror = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT);
|
||||||
allerror = error;
|
|
||||||
/*
|
/*
|
||||||
* Having written the new inode to disk, save its new configuration
|
* Having written the new inode to disk, save its new configuration
|
||||||
* and put back the old block pointers long enough to process them.
|
* and put back the old block pointers long enough to process them.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user