Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs Remove #if 0'd proplib-related code.
details: https://anonhg.NetBSD.org/src/rev/a0eb67b2e294
branches: trunk
changeset: 773210:a0eb67b2e294
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jan 29 07:18:17 2012 +0000
description:
Remove #if 0'd proplib-related code.
diffstat:
sys/ufs/ufs/ufs_quota2.c | 46 ++--------------------------------------------
1 files changed, 2 insertions(+), 44 deletions(-)
diffs (74 lines):
diff -r 42901c65cf79 -r a0eb67b2e294 sys/ufs/ufs/ufs_quota2.c
--- a/sys/ufs/ufs/ufs_quota2.c Sun Jan 29 07:17:41 2012 +0000
+++ b/sys/ufs/ufs/ufs_quota2.c Sun Jan 29 07:18:17 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_quota2.c,v 1.27 2012/01/29 07:16:54 dholland Exp $ */
+/* $NetBSD: ufs_quota2.c,v 1.28 2012/01/29 07:18:17 dholland Exp $ */
/*-
* Copyright (c) 2010 Manuel Bouyer
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ufs_quota2.c,v 1.27 2012/01/29 07:16:54 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ufs_quota2.c,v 1.28 2012/01/29 07:18:17 dholland Exp $");
#include <sys/buf.h>
#include <sys/param.h>
@@ -74,10 +74,6 @@
int (*func)(struct ufsmount *, uint64_t *, struct quota2_entry *,
uint64_t, void *));
-#if 0
-static prop_dictionary_t q2etoprop(struct quota2_entry *, int);
-#endif
-
static const char *limnames[] = INITQLNAMES;
static void
@@ -93,44 +89,6 @@
q2e->q2e_val[objtype].q2v_grace = val->qv_grace;
}
-#if 0
-static prop_dictionary_t
-q2etoprop(struct quota2_entry *q2e, int def)
-{
- const char *val_names[] = INITQVNAMES_ALL;
- prop_dictionary_t dict1 = prop_dictionary_create();
- prop_dictionary_t dict2;
- int i;
-
- if (dict1 == NULL)
- return NULL;
-
- if (def) {
- if (!prop_dictionary_set_cstring_nocopy(dict1, "id",
- "default")) {
- goto err;
- }
- } else {
- if (!prop_dictionary_set_uint32(dict1, "id", q2e->q2e_uid)) {
- goto err;
- }
- }
- for (i = 0; i < N_QL; i++) {
- dict2 = limits64toprop(&q2e->q2e_val[i].q2v_hardlimit,
- val_names, N_QV);
- if (dict2 == NULL)
- goto err;
- if (!prop_dictionary_set_and_rel(dict1, limnames[i], dict2))
- goto err;
- }
- return dict1;
-
-err:
- prop_object_release(dict1);
- return NULL;
-}
-#endif
-
/*
* Convert internal representation to FS-independent representation.
* (Note that while the two types are currently identical, the
Home |
Main Index |
Thread Index |
Old Index