Fastlink compat.
This commit is contained in:
parent
48967285da
commit
914f6b157b
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)ffs_inode.c 8.5 (Berkeley) 12/30/93
|
||||
* $Id: ffs_inode.c,v 1.3 1994/06/13 20:49:56 mycroft Exp $
|
||||
* $Id: ffs_inode.c,v 1.4 1994/06/15 15:35:06 mycroft Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -167,7 +167,9 @@ ffs_truncate(ap)
|
||||
oip = VTOI(ovp);
|
||||
tv = time;
|
||||
if (ovp->v_type == VLNK &&
|
||||
oip->i_size < ovp->v_mount->mnt_maxsymlinklen) {
|
||||
(oip->i_size < ovp->v_mount->mnt_maxsymlinklen ||
|
||||
(ovp->v_mount->mnt_maxsymlinklen == 0 &&
|
||||
oip->i_din.di_blocks == 0))) {
|
||||
#ifdef DIAGNOSTIC
|
||||
if (length != 0)
|
||||
panic("ffs_truncate: partial truncate of symlink");
|
||||
|
Loading…
x
Reference in New Issue
Block a user