diff options
author | 2016-02-27 18:50:38 +0000 | |
---|---|---|
committer | 2016-02-27 18:50:38 +0000 | |
commit | 3484f39e521e2cbedf2e0a8b8c025df31c8e8ab1 (patch) | |
tree | bebca404106d53c4f1804ce526f8029ab43b7189 /sys/ntfs/ntfs_vfsops.c | |
parent | Fix STANDARDS: use the appropriate .St argument and add the information (diff) | |
download | wireguard-openbsd-3484f39e521e2cbedf2e0a8b8c025df31c8e8ab1.tar.xz wireguard-openbsd-3484f39e521e2cbedf2e0a8b8c025df31c8e8ab1.zip |
Move mnt_maxsymlink from struct mount to struct ufsmount.
The concept of differentiating between "short" and "long" symlinks is
specific to ufs/, so it shouldn't creep into the generic fs layer.
Inspired by a similar commit to NetBSD.
While there replace all references to mnt_maxsymlinklen in ufs/ext2fs
with EXT2_MAXSYMLINKLEN, which is the constant max short symlink len for
ext2fs. This allows to get rid of some (mnt_maxsymlinklen == 0) checks
there, which is always false for ext2fs.
input and ok stefan@
ok millert@
Diffstat (limited to 'sys/ntfs/ntfs_vfsops.c')
-rw-r--r-- | sys/ntfs/ntfs_vfsops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ntfs/ntfs_vfsops.c b/sys/ntfs/ntfs_vfsops.c index d7ef07b85dd..f81873584ca 100644 --- a/sys/ntfs/ntfs_vfsops.c +++ b/sys/ntfs/ntfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntfs_vfsops.c,v 1.44 2015/03/14 03:38:52 jsg Exp $ */ +/* $OpenBSD: ntfs_vfsops.c,v 1.45 2016/02/27 18:50:38 natano Exp $ */ /* $NetBSD: ntfs_vfsops.c,v 1.7 2003/04/24 07:50:19 christos Exp $ */ /*- @@ -436,7 +436,6 @@ ntfs_mountfs(struct vnode *devvp, struct mount *mp, struct ntfs_args *argsp, mp->mnt_stat.f_fsid.val[0] = dev; mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum; - mp->mnt_maxsymlinklen = 0; mp->mnt_flag |= MNT_LOCAL; devvp->v_specmountpoint = mp; return (0); |