adapt to libpuffs changes
This commit is contained in:
parent
14995912ad
commit
9a25a94ef7
|
@ -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");
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue