Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/bouyer-quota2]: src/sys/ufs/ufs Remove key "quota version", it doesn't s...



details:   https://anonhg.NetBSD.org/src/rev/68cf6a746789
branches:  bouyer-quota2
changeset: 761157:68cf6a746789
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Fri Feb 11 11:38:44 2011 +0000

description:
Remove key "quota version", it doesn't serve any purpose

diffstat:

 sys/ufs/ufs/quota2_prop.c |  12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diffs (40 lines):

diff -r 91899fac57d9 -r 68cf6a746789 sys/ufs/ufs/quota2_prop.c
--- a/sys/ufs/ufs/quota2_prop.c Fri Feb 11 11:27:29 2011 +0000
+++ b/sys/ufs/ufs/quota2_prop.c Fri Feb 11 11:38:44 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: quota2_prop.c,v 1.1.2.4 2011/01/31 15:24:10 bouyer Exp $ */
+/* $NetBSD: quota2_prop.c,v 1.1.2.5 2011/02/11 11:38:44 bouyer Exp $ */
 /*-
   * Copyright (c) 2010 Manuel Bouyer
   * All rights reserved.
@@ -134,12 +134,6 @@
        if (prop_number_integer_value(pn) != 1)
                return EINVAL;
 
-       pn = prop_dictionary_get(qdict, "quota version");
-       if (pn == NULL)
-               return EINVAL;
-       if (prop_number_integer_value(pn) != 2)
-               return EINVAL;
-
        o = prop_dictionary_get(qdict, "commands");
        if (o == NULL)
                return ENOMEM;
@@ -183,9 +177,6 @@
        if (!prop_dictionary_set_uint8(dict, "interface version", 1)) {
                goto err;
        }
-       if (!prop_dictionary_set_uint8(dict, "quota version", 2)) {
-               goto err;
-       }
        return dict;
 err:
        prop_object_release(dict);
@@ -247,7 +238,6 @@
 err:
        prop_object_release(dict1);
        return NULL;
-       
 }
 
 prop_dictionary_t



Home | Main Index | Thread Index | Old Index