adapt to libpuffs changes

This commit is contained in:
pooka 2007-01-15 00:41:09 +00:00
parent 14995912ad
commit 9a25a94ef7
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dtfs.c,v 1.13 2007/01/06 18:25:19 pooka Exp $ */
/* $NetBSD: dtfs.c,v 1.14 2007/01/15 00:41:09 pooka Exp $ */
/*
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
@ -69,6 +69,7 @@ main(int argc, char *argv[])
extern int optind;
struct dtfs_mount dtm;
struct puffs_usermount *pu;
struct puffs_pathobj *po_root;
struct puffs_ops *pops;
mntoptparse_t mp;
int pflags, lflags, mntflags;
@ -134,6 +135,11 @@ main(int argc, char *argv[])
if (dtfs_domount(pu) != 0)
errx(1, "dtfs_domount failed");
/* XXX: wrong order, but I need to refactor this further anyway */
po_root = puffs_getrootpathobj(pu);
po_root->po_path = argv[0];
po_root->po_len = strlen(argv[0]);
if (puffs_mainloop(pu, lflags) == -1)
err(1, "mainloop");

View File

@ -1,4 +1,4 @@
/* $NetBSD: dtfs_vfsops.c,v 1.9 2007/01/06 18:25:19 pooka Exp $ */
/* $NetBSD: dtfs_vfsops.c,v 1.10 2007/01/15 00:41:09 pooka Exp $ */
/*
* Copyright (c) 2006 Antti Kantee. All Rights Reserved.
@ -71,7 +71,6 @@ dtfs_domount(struct puffs_usermount *pu)
va->va_nlink = 2;
pu->pu_pn_root = pn;
puffs_setrootpath(pu, ".");
/* XXX: should call dtfs_fs_statvfs */
puffs_zerostatvfs(&sb);