#1864 Bugfix for NetBSD 2.0 Disk Quota Module

1.170
closed
Jamie Cameron
5
2004-12-07
2004-12-07
Clemens Gesell
No

Hello, i made a trivial patch to get the Disk Quota
Module working on NetBSD 2.0.

NetBSD mickey2.disy.net 2.0G NetBSD 2.0G (GENERIC) #0:
Sat Jul 3 22:32:45 CEST 2004
root@mp3serv.local:/usr/obj/sys/arch/i386/compile/GENERIC
i386

--- netbsd-mounts.c 2004-12-07 14:08:29.000000000 +0100
+++ netbsd-mounts-new.c 2004-12-07 14:07:58.000000000 +0100
@@ -9,7 +9,7 @@

int main(void)
{
-struct statfs *mntlist;
+struct statvfs *mntlist;
int n, i;

n = getmntinfo(&mntlist, MNT_NOWAIT);
@@ -22,8 +22,8 @@
mntlist[i].f_mntonname,
mntlist[i].f_mntfromname,
mntlist[i].f_fstypename,
- expand_flags(mntlist[i].f_flags),
- mntlist[i].f_flags);
+ expand_flags(mntlist[i].f_flag),
+ mntlist[i].f_flag);
}
}

--- netbsd-lib.pl 2004-12-07 14:10:19.000000000 +0100
+++ netbsd-lib-new.pl 2004-12-07 14:09:57.000000000 +0100
@@ -247,7 +247,7 @@
sub fstype_name
{
local(%fsmap);
-%fsmap = ("ffs", "NetBSD Unix Filesystem",
+%fsmap = ("ffs", "OpenBSD Unix Filesystem",
"nfs","Network Filesystem",
"cd9660","ISO9660 CD-ROM",
"msdos","MS-DOS Filesystem",

I have not tested this on NetBSD 1.6.

Greeting
Clemens Gesell alias Paranoi

Discussion

  • Clemens Gesell
    Clemens Gesell
    2004-12-07

    Logged In: YES
    user_id=551478

    Ups, should be the other direction ...

    --- netbsd-lib.pl 2004-12-07 14:25:44.000000000 +0100
    +++ netbsd-lib-new.pl 2004-12-07 14:25:34.000000000 +0100
    @@ -247,7 +247,7 @@
    sub fstype_name
    {
    local(%fsmap);
    -%fsmap = ("ffs", "OpenBSD Unix Filesystem",
    +%fsmap = ("ffs", "NetBSD Unix Filesystem",
    "nfs","Network Filesystem",
    "cd9660","ISO9660 CD-ROM",
    "msdos","MS-DOS Filesystem",

     
  • Jamie Cameron
    Jamie Cameron
    2004-12-07

    • status: open --> closed
     
  • Jamie Cameron
    Jamie Cameron
    2004-12-07

    Logged In: YES
    user_id=129364

    Thanks for that patch - I will include it in the next Webmin
    release!