remove all traces of non-working quota support

add quota support to TODO - makes sense only once writing support
would be implemented, and only once NTFS would support notion of file 'owner'

adresses kern/21967 by Martin Husemann
This commit is contained in:
jdolecek 2003-08-02 12:11:56 +00:00
parent f462956915
commit 28d75bbaf3
3 changed files with 11 additions and 19 deletions

View File

@ -1,4 +1,4 @@
$NetBSD: TODO,v 1.1 2002/12/23 17:38:31 jdolecek Exp $
$NetBSD: TODO,v 1.2 2003/08/02 12:11:56 jdolecek Exp $
- convert the code to do caching in buffer cache indexed by
file-vnode/file-offset so that NTFS would take advantage of UBC;
@ -26,6 +26,7 @@ $NetBSD: TODO,v 1.1 2002/12/23 17:38:31 jdolecek Exp $
(from Semen Ustimenko <semenu@FreeBSD.org>)
generally, better write support
- once writing would work, consider quota support
- support mount update

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntfs_vfsops.c,v 1.10 2003/06/29 22:31:11 fvdl Exp $ */
/* $NetBSD: ntfs_vfsops.c,v 1.11 2003/08/02 12:11:56 jdolecek Exp $ */
/*-
* Copyright (c) 1998, 1999 Semen Ustimenko
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.10 2003/06/29 22:31:11 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.11 2003/08/02 12:11:56 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -736,6 +736,10 @@ ntfs_root(
return (0);
}
/*
* Do operations associated with quotas, not supported
*/
/* ARGSUSED */
static int
ntfs_quotactl (
struct mount *mp,
@ -744,7 +748,7 @@ ntfs_quotactl (
caddr_t arg,
struct proc *p)
{
printf("\nntfs_quotactl():\n");
return EOPNOTSUPP;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntfs_vnops.c,v 1.12 2003/06/29 22:31:12 fvdl Exp $ */
/* $NetBSD: ntfs_vnops.c,v 1.13 2003/08/02 12:11:57 jdolecek Exp $ */
/*
* Copyright (c) 1992, 1993
@ -40,13 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ntfs_vnops.c,v 1.12 2003/06/29 22:31:12 fvdl Exp $");
#ifdef _KERNEL_OPT
#include "opt_quota.h"
#endif
#undef QUOTA /* XXX - quota support for ntfs does not compile */
__KERNEL_RCSID(0, "$NetBSD: ntfs_vnops.c,v 1.13 2003/08/02 12:11:57 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -462,9 +456,6 @@ ntfs_access(ap)
mode_t mask, mode = ap->a_mode;
gid_t *gp;
int i;
#ifdef QUOTA
int error;
#endif
dprintf(("ntfs_access: %d\n",ip->i_number));
@ -480,10 +471,6 @@ ntfs_access(ap)
case VREG:
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return (EROFS);
#ifdef QUOTA
if (error = getinoquota(ip))
return (error);
#endif
break;
}
}