diff options
author | 2005-03-02 00:46:10 +0000 | |
---|---|---|
committer | 2005-03-02 00:46:10 +0000 | |
commit | 01a14f43b6791cbfab8bcafb0b7bf29cebe6af62 (patch) | |
tree | 556dd922858a2e23139f6ae19ae67d24b59d6b98 | |
parent | Add support for MS-DOS filesystems > 128 GB, by changing the way we (diff) | |
download | wireguard-openbsd-01a14f43b6791cbfab8bcafb0b7bf29cebe6af62.tar.xz wireguard-openbsd-01a14f43b6791cbfab8bcafb0b7bf29cebe6af62.zip |
(And remember to remove the block on filesystems > 128 GB)
Add support for MS-DOS filesystems > 128 GB, by changing the way we
calculate fileids (fake inode numbers). This uses some hash code by
Thomas Wang, who has agreed to the existing licence on the file (i.e.
his name just needed to be added to the copyright list). Thanks.
Also a tiny bit of KNF.
Closes PR 4119; works for the OP Pawel Rogocz.
Help with testing todd@, thanks.
ok deraadt@
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 89a89c03c79..1af07051b51 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vfsops.c,v 1.35 2004/12/26 21:22:13 miod Exp $ */ +/* $OpenBSD: msdosfs_vfsops.c,v 1.36 2005/03/02 00:46:10 tom Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */ /*- @@ -372,15 +372,6 @@ msdosfs_mountfs(devvp, mp, p, argp) } dirsperblk = pmp->pm_BytesPerSec / sizeof(struct direntry); - if (pmp->pm_HugeSectors > 0xffffffff / dirsperblk + 1) { - /* - * We cannot deal currently with this size of disk - * due to fileid limitations (see msdosfs_getattr and - * msdosfs_readdir) - */ - error = EINVAL; - goto error_exit; - } if (pmp->pm_RootDirEnts == 0) { if (pmp->pm_Sectors || pmp->pm_FATsecs || |