Home | History | Annotate | Line # | Download | only in common
h_fsmacros.h revision 1.38
      1  1.38  reinoud /*	$NetBSD: h_fsmacros.h,v 1.38 2013/06/26 19:29:24 reinoud Exp $	*/
      2   1.1    njoly 
      3   1.1    njoly /*-
      4   1.1    njoly  * Copyright (c) 2010 The NetBSD Foundation, Inc.
      5   1.1    njoly  * All rights reserved.
      6   1.1    njoly  *
      7   1.1    njoly  * This code is derived from software contributed to The NetBSD Foundation
      8   1.2    njoly  * by Nicolas Joly.
      9   1.1    njoly  *
     10   1.1    njoly  * Redistribution and use in source and binary forms, with or without
     11   1.1    njoly  * modification, are permitted provided that the following conditions
     12   1.1    njoly  * are met:
     13   1.1    njoly  * 1. Redistributions of source code must retain the above copyright
     14   1.1    njoly  *    notice, this list of conditions and the following disclaimer.
     15   1.1    njoly  * 2. Redistributions in binary form must reproduce the above copyright
     16   1.1    njoly  *    notice, this list of conditions and the following disclaimer in the
     17   1.1    njoly  *    documentation and/or other materials provided with the distribution.
     18   1.1    njoly  *
     19   1.1    njoly  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     20   1.1    njoly  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21   1.1    njoly  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22   1.1    njoly  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     23   1.1    njoly  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24   1.1    njoly  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25   1.1    njoly  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26   1.1    njoly  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27   1.1    njoly  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28   1.1    njoly  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29   1.1    njoly  * POSSIBILITY OF SUCH DAMAGE.
     30   1.1    njoly  */
     31   1.1    njoly 
     32   1.1    njoly #ifndef __H_FSMACROS_H_
     33   1.1    njoly #define __H_FSMACROS_H_
     34   1.1    njoly 
     35   1.5    njoly #include <sys/mount.h>
     36   1.5    njoly 
     37   1.1    njoly #include <atf-c.h>
     38  1.17    pooka #include <puffsdump.h>
     39   1.1    njoly #include <string.h>
     40   1.1    njoly 
     41  1.20    pooka #include <rump/rump.h>
     42  1.20    pooka 
     43  1.20    pooka #include "../../h_macros.h"
     44  1.20    pooka 
     45  1.11    pooka #define FSPROTOS(_fs_)							\
     46  1.17    pooka int _fs_##_fstest_newfs(const atf_tc_t *, void **, const char *,	\
     47  1.17    pooka 			off_t, void *);					\
     48  1.11    pooka int _fs_##_fstest_delfs(const atf_tc_t *, void *);			\
     49  1.11    pooka int _fs_##_fstest_mount(const atf_tc_t *, void *, const char *, int);	\
     50  1.11    pooka int _fs_##_fstest_unmount(const atf_tc_t *, const char *, int);
     51  1.11    pooka 
     52  1.11    pooka FSPROTOS(ext2fs);
     53  1.11    pooka FSPROTOS(ffs);
     54  1.28    pooka FSPROTOS(ffslog);
     55  1.11    pooka FSPROTOS(lfs);
     56  1.11    pooka FSPROTOS(msdosfs);
     57  1.14    pooka FSPROTOS(nfs);
     58  1.24    pooka FSPROTOS(nfsro);
     59  1.25    pooka FSPROTOS(p2k_ffs);
     60  1.11    pooka FSPROTOS(puffs);
     61  1.22    pooka FSPROTOS(rumpfs);
     62  1.11    pooka FSPROTOS(sysvbfs);
     63  1.11    pooka FSPROTOS(tmpfs);
     64  1.38  reinoud FSPROTOS(udf);
     65  1.35      uch FSPROTOS(v7fs);
     66  1.36    pooka FSPROTOS(zfs);
     67   1.1    njoly 
     68  1.18    pooka #ifndef FSTEST_IMGNAME
     69  1.12    pooka #define FSTEST_IMGNAME "image.fs"
     70  1.18    pooka #endif
     71  1.18    pooka #ifndef FSTEST_IMGSIZE
     72  1.12    pooka #define FSTEST_IMGSIZE (10000 * 512)
     73  1.18    pooka #endif
     74  1.18    pooka #ifndef FSTEST_MNTNAME
     75  1.12    pooka #define FSTEST_MNTNAME "/mnt"
     76  1.18    pooka #endif
     77   1.1    njoly 
     78  1.15    pooka #define FSTEST_CONSTRUCTOR(_tc_, _fs_, _args_)				\
     79  1.15    pooka do {									\
     80  1.15    pooka 	if (_fs_##_fstest_newfs(_tc_, &_args_,				\
     81  1.17    pooka 	    FSTEST_IMGNAME, FSTEST_IMGSIZE, NULL) != 0)			\
     82  1.19    pooka 		atf_tc_fail_errno("newfs failed");			\
     83  1.17    pooka 	if (_fs_##_fstest_mount(_tc_, _args_, FSTEST_MNTNAME, 0) != 0)	\
     84  1.19    pooka 		atf_tc_fail_errno("mount failed");			\
     85  1.17    pooka } while (/*CONSTCOND*/0);
     86  1.17    pooka 
     87  1.17    pooka #define FSTEST_CONSTRUCTOR_FSPRIV(_tc_, _fs_, _args_, _privargs_)	\
     88  1.17    pooka do {									\
     89  1.17    pooka 	if (_fs_##_fstest_newfs(_tc_, &_args_,				\
     90  1.17    pooka 	    FSTEST_IMGNAME, FSTEST_IMGSIZE, _privargs_) != 0)		\
     91  1.19    pooka 		atf_tc_fail_errno("newfs failed");			\
     92  1.15    pooka 	if (_fs_##_fstest_mount(_tc_, _args_, FSTEST_MNTNAME, 0) != 0)	\
     93  1.19    pooka 		atf_tc_fail_errno("mount failed");			\
     94  1.15    pooka } while (/*CONSTCOND*/0);
     95  1.15    pooka 
     96  1.15    pooka #define FSTEST_DESTRUCTOR(_tc_, _fs_, _args_)				\
     97  1.15    pooka do {									\
     98  1.19    pooka 	if (_fs_##_fstest_unmount(_tc_, FSTEST_MNTNAME, 0) != 0) {	\
     99  1.19    pooka 		rump_pub_vfs_mount_print(FSTEST_MNTNAME, 1);		\
    100  1.19    pooka 		atf_tc_fail_errno("unmount failed");			\
    101  1.19    pooka 	}								\
    102  1.15    pooka 	if (_fs_##_fstest_delfs(_tc_, _args_) != 0)			\
    103  1.19    pooka 		atf_tc_fail_errno("delfs failed");			\
    104  1.15    pooka } while (/*CONSTCOND*/0);
    105  1.15    pooka 
    106  1.23    pooka #define ATF_TC_FSADD(fs,type,func,desc)					\
    107  1.34     jmmv 	ATF_TC(fs##_##func);						\
    108  1.23    pooka 	ATF_TC_HEAD(fs##_##func,tc)					\
    109  1.23    pooka 	{								\
    110  1.23    pooka 		atf_tc_set_md_var(tc, "descr", type " test for " desc);	\
    111  1.27    pooka 		atf_tc_set_md_var(tc, "X-fs.type", #fs);		\
    112  1.30    pooka 		atf_tc_set_md_var(tc, "X-fs.mntname", type);		\
    113  1.37     jmmv 		if (strcmp(#fs, "zfs") == 0) {				\
    114  1.37     jmmv 			/* This should not be necessary. */		\
    115  1.37     jmmv 			atf_tc_set_md_var(tc, "require.user", "root");	\
    116  1.37     jmmv 		}							\
    117  1.23    pooka 	}								\
    118  1.23    pooka 	void *fs##func##tmp;						\
    119  1.23    pooka 									\
    120  1.23    pooka 	ATF_TC_BODY(fs##_##func,tc)					\
    121  1.23    pooka 	{								\
    122  1.31    pooka 		if (!atf_check_fstype(tc, #fs))				\
    123  1.23    pooka 			atf_tc_skip("filesystem not selected");		\
    124  1.23    pooka 		FSTEST_CONSTRUCTOR(tc,fs,fs##func##tmp);		\
    125  1.23    pooka 		func(tc,FSTEST_MNTNAME);				\
    126  1.23    pooka 		if (fs##_fstest_unmount(tc, FSTEST_MNTNAME, 0) != 0) {	\
    127  1.23    pooka 			rump_pub_vfs_mount_print(FSTEST_MNTNAME, 1);	\
    128  1.23    pooka 			atf_tc_fail_errno("unmount failed");		\
    129  1.23    pooka 		}							\
    130  1.23    pooka 	}
    131   1.1    njoly 
    132  1.24    pooka #define ATF_TC_FSADD_RO(_fs_,_type_,_func_,_desc_,_gen_)		\
    133  1.34     jmmv 	ATF_TC(_fs_##_##_func_);					\
    134  1.24    pooka 	ATF_TC_HEAD(_fs_##_##_func_,tc)					\
    135  1.24    pooka 	{								\
    136  1.24    pooka 		atf_tc_set_md_var(tc, "descr",_type_" test for "_desc_);\
    137  1.26    pooka 		atf_tc_set_md_var(tc, "X-fs.type", #_fs_);		\
    138  1.30    pooka 		atf_tc_set_md_var(tc, "X-fs.mntname", _type_);		\
    139  1.37     jmmv 		if (strcmp(#_fs_, "zfs") == 0) {			\
    140  1.37     jmmv 			/* This should not be necessary. */		\
    141  1.37     jmmv 			atf_tc_set_md_var(tc, "require.user", "root");	\
    142  1.37     jmmv 		}							\
    143  1.24    pooka 	}								\
    144  1.24    pooka 	void *_fs_##_func_##tmp;					\
    145  1.24    pooka 									\
    146  1.24    pooka 	ATF_TC_BODY(_fs_##_##_func_,tc)					\
    147  1.24    pooka 	{								\
    148  1.31    pooka 		if (!atf_check_fstype(tc, #_fs_))			\
    149  1.24    pooka 			atf_tc_skip("filesystem not selected");		\
    150  1.24    pooka 		FSTEST_CONSTRUCTOR(tc,_fs_,_fs_##_func_##tmp);		\
    151  1.24    pooka 		_gen_(tc,FSTEST_MNTNAME);				\
    152  1.24    pooka 		if (_fs_##_fstest_unmount(tc, FSTEST_MNTNAME, 0) != 0)	\
    153  1.24    pooka 			atf_tc_fail_errno("unmount r/w failed");	\
    154  1.24    pooka 		if (_fs_##_fstest_mount(tc, _fs_##_func_##tmp,		\
    155  1.24    pooka 		    FSTEST_MNTNAME, MNT_RDONLY) != 0)			\
    156  1.24    pooka 		atf_tc_fail_errno("mount ro failed");			\
    157  1.24    pooka 		_func_(tc,FSTEST_MNTNAME);				\
    158  1.24    pooka 		if (_fs_##_fstest_unmount(tc, FSTEST_MNTNAME, 0) != 0) {\
    159  1.24    pooka 			rump_pub_vfs_mount_print(FSTEST_MNTNAME, 1);	\
    160  1.24    pooka 			atf_tc_fail_errno("unmount failed");		\
    161  1.24    pooka 		}							\
    162  1.24    pooka 	}
    163  1.24    pooka 
    164  1.23    pooka #define ATF_TP_FSADD(fs,func)						\
    165   1.1    njoly   ATF_TP_ADD_TC(tp,fs##_##func)
    166   1.1    njoly 
    167  1.36    pooka #define ATF_TC_FSAPPLY_NOZFS(func,desc)					\
    168  1.23    pooka   ATF_TC_FSADD(ext2fs,MOUNT_EXT2FS,func,desc)				\
    169  1.23    pooka   ATF_TC_FSADD(ffs,MOUNT_FFS,func,desc)					\
    170  1.28    pooka   ATF_TC_FSADD(ffslog,MOUNT_FFS,func,desc)				\
    171  1.23    pooka   ATF_TC_FSADD(lfs,MOUNT_LFS,func,desc)					\
    172  1.23    pooka   ATF_TC_FSADD(msdosfs,MOUNT_MSDOS,func,desc)				\
    173  1.23    pooka   ATF_TC_FSADD(nfs,MOUNT_NFS,func,desc)					\
    174  1.23    pooka   ATF_TC_FSADD(puffs,MOUNT_PUFFS,func,desc)				\
    175  1.33    pooka   ATF_TC_FSADD(p2k_ffs,MOUNT_PUFFS,func,desc)				\
    176  1.23    pooka   ATF_TC_FSADD(rumpfs,MOUNT_RUMPFS,func,desc)				\
    177  1.23    pooka   ATF_TC_FSADD(sysvbfs,MOUNT_SYSVBFS,func,desc)				\
    178  1.35      uch   ATF_TC_FSADD(tmpfs,MOUNT_TMPFS,func,desc)				\
    179  1.38  reinoud   ATF_TC_FSADD(udf,MOUNT_UDF,func,desc)				\
    180  1.35      uch   ATF_TC_FSADD(v7fs,MOUNT_V7FS,func,desc)
    181   1.1    njoly 
    182  1.36    pooka #define ATF_TP_FSAPPLY_NOZFS(func)					\
    183  1.23    pooka   ATF_TP_FSADD(ext2fs,func);						\
    184  1.23    pooka   ATF_TP_FSADD(ffs,func);						\
    185  1.28    pooka   ATF_TP_FSADD(ffslog,func);						\
    186  1.23    pooka   ATF_TP_FSADD(lfs,func);						\
    187  1.23    pooka   ATF_TP_FSADD(msdosfs,func);						\
    188  1.23    pooka   ATF_TP_FSADD(nfs,func);						\
    189  1.23    pooka   ATF_TP_FSADD(puffs,func);						\
    190  1.33    pooka   ATF_TP_FSADD(p2k_ffs,func);						\
    191  1.23    pooka   ATF_TP_FSADD(rumpfs,func);						\
    192  1.23    pooka   ATF_TP_FSADD(sysvbfs,func);						\
    193  1.35      uch   ATF_TP_FSADD(tmpfs,func);						\
    194  1.38  reinoud   ATF_TP_FSADD(udf,func);						\
    195  1.35      uch   ATF_TP_FSADD(v7fs,func);
    196   1.1    njoly 
    197  1.36    pooka /* XXX: this will not scale */
    198  1.36    pooka #ifdef WANT_ZFS_TESTS
    199  1.36    pooka #define ATF_TC_FSAPPLY(func,desc)					\
    200  1.36    pooka   ATF_TC_FSAPPLY_NOZFS(func,desc)					\
    201  1.36    pooka   ATF_TC_FSADD(zfs,MOUNT_ZFS,func,desc)
    202  1.36    pooka #define ATF_TP_FSAPPLY(func)						\
    203  1.36    pooka   ATF_TP_FSAPPLY_NOZFS(func)						\
    204  1.36    pooka   ATF_TP_FSADD(zfs,func);
    205  1.36    pooka 
    206  1.36    pooka #else /* !WANT_ZFS_TESTS */
    207  1.36    pooka 
    208  1.36    pooka #define ATF_TC_FSAPPLY(func,desc)					\
    209  1.36    pooka   ATF_TC_FSAPPLY_NOZFS(func,desc)
    210  1.36    pooka #define ATF_TP_FSAPPLY(func)						\
    211  1.36    pooka   ATF_TP_FSAPPLY_NOZFS(func)
    212  1.36    pooka 
    213  1.36    pooka #endif /* WANT_ZFS_TESTS */
    214  1.36    pooka 
    215  1.24    pooka /*
    216  1.24    pooka  * Same as above, but generate a file system image first and perform
    217  1.24    pooka  * tests for a r/o mount.
    218  1.24    pooka  *
    219  1.24    pooka  * Missing the following file systems:
    220  1.24    pooka  *   + lfs (fstest_lfs routines cannot handle remount.  FIXME!)
    221  1.24    pooka  *   + tmpfs (memory backend)
    222  1.24    pooka  *   + rumpfs (memory backend)
    223  1.24    pooka  *   + puffs (memory backend, but could be run in theory)
    224  1.24    pooka  */
    225  1.24    pooka 
    226  1.24    pooka #define ATF_TC_FSAPPLY_RO(func,desc,gen)				\
    227  1.24    pooka   ATF_TC_FSADD_RO(ext2fs,MOUNT_EXT2FS,func,desc,gen)			\
    228  1.24    pooka   ATF_TC_FSADD_RO(ffs,MOUNT_FFS,func,desc,gen)				\
    229  1.28    pooka   ATF_TC_FSADD_RO(ffslog,MOUNT_FFS,func,desc,gen)			\
    230  1.24    pooka   ATF_TC_FSADD_RO(msdosfs,MOUNT_MSDOS,func,desc,gen)			\
    231  1.24    pooka   ATF_TC_FSADD_RO(nfs,MOUNT_NFS,func,desc,gen)				\
    232  1.24    pooka   ATF_TC_FSADD_RO(nfsro,MOUNT_NFS,func,desc,gen)			\
    233  1.35      uch   ATF_TC_FSADD_RO(sysvbfs,MOUNT_SYSVBFS,func,desc,gen)			\
    234  1.38  reinoud   ATF_TC_FSADD_RO(udf,MOUNT_UDF,func,desc,gen)			\
    235  1.35      uch   ATF_TC_FSADD_RO(v7fs,MOUNT_V7FS,func,desc,gen)
    236  1.24    pooka 
    237  1.24    pooka #define ATF_TP_FSAPPLY_RO(func)						\
    238  1.24    pooka   ATF_TP_FSADD(ext2fs,func);						\
    239  1.24    pooka   ATF_TP_FSADD(ffs,func);						\
    240  1.28    pooka   ATF_TP_FSADD(ffslog,func);						\
    241  1.24    pooka   ATF_TP_FSADD(msdosfs,func);						\
    242  1.24    pooka   ATF_TP_FSADD(nfs,func);						\
    243  1.24    pooka   ATF_TP_FSADD(nfsro,func);						\
    244  1.35      uch   ATF_TP_FSADD(sysvbfs,func);						\
    245  1.38  reinoud   ATF_TP_FSADD(udf,func);						\
    246  1.35      uch   ATF_TP_FSADD(v7fs,func);
    247  1.24    pooka 
    248  1.23    pooka #define ATF_FSAPPLY(func,desc)						\
    249  1.23    pooka 	ATF_TC_FSAPPLY(func,desc);					\
    250  1.23    pooka 	ATF_TP_ADD_TCS(tp)						\
    251  1.23    pooka 	{								\
    252  1.23    pooka 		ATF_TP_FSAPPLY(func);					\
    253  1.23    pooka 		return atf_no_error();					\
    254  1.23    pooka 	}
    255   1.1    njoly 
    256  1.13    njoly static __inline bool
    257   1.1    njoly atf_check_fstype(const atf_tc_t *tc, const char *fs)
    258   1.1    njoly {
    259  1.23    pooka 	const char *fstype;
    260  1.23    pooka 
    261  1.23    pooka 	if (!atf_tc_has_config_var(tc, "fstype"))
    262  1.23    pooka 		return true;
    263   1.1    njoly 
    264  1.23    pooka 	fstype = atf_tc_get_config_var(tc, "fstype");
    265  1.23    pooka 	if (strcmp(fstype, fs) == 0)
    266  1.23    pooka 		return true;
    267  1.23    pooka 	return false;
    268   1.1    njoly }
    269   1.1    njoly 
    270   1.8    pooka #define FSTYPE_EXT2FS(tc)\
    271  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "ext2fs") == 0)
    272   1.8    pooka #define FSTYPE_FFS(tc)\
    273  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "ffs") == 0)
    274  1.28    pooka #define FSTYPE_FFSLOG(tc)\
    275  1.29    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "ffslog") == 0)
    276   1.8    pooka #define FSTYPE_LFS(tc)\
    277  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "lfs") == 0)
    278   1.8    pooka #define FSTYPE_MSDOS(tc)\
    279  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "msdosfs") == 0)
    280  1.14    pooka #define FSTYPE_NFS(tc)\
    281  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "nfs") == 0)
    282  1.26    pooka #define FSTYPE_NFSRO(tc)\
    283  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "nfsro") == 0)
    284  1.26    pooka #define FSTYPE_P2K_FFS(tc)\
    285  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "p2k_ffs") == 0)
    286   1.8    pooka #define FSTYPE_PUFFS(tc)\
    287  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "puffs") == 0)
    288  1.22    pooka #define FSTYPE_RUMPFS(tc)\
    289  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "rumpfs") == 0)
    290   1.8    pooka #define FSTYPE_SYSVBFS(tc)\
    291  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "sysvbfs") == 0)
    292   1.8    pooka #define FSTYPE_TMPFS(tc)\
    293  1.26    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "tmpfs") == 0)
    294  1.38  reinoud #define FSTYPE_UDF(tc)\
    295  1.38  reinoud     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "udf") == 0)
    296  1.35      uch #define FSTYPE_V7FS(tc)\
    297  1.35      uch     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "v7fs") == 0)
    298  1.36    pooka #define FSTYPE_ZFS(tc)\
    299  1.36    pooka     (strcmp(atf_tc_get_md_var(tc, "X-fs.type"), "zfs") == 0)
    300   1.5    njoly 
    301  1.23    pooka #define FSTEST_ENTER()							\
    302  1.23    pooka 	if (rump_sys_chdir(FSTEST_MNTNAME) == -1)			\
    303  1.23    pooka 		atf_tc_fail_errno("failed to cd into test mount")
    304  1.23    pooka 
    305  1.23    pooka #define FSTEST_EXIT()							\
    306  1.23    pooka 	if (rump_sys_chdir("/") == -1)					\
    307  1.23    pooka 		atf_tc_fail_errno("failed to cd out of test mount")
    308  1.17    pooka 
    309  1.17    pooka /*
    310  1.17    pooka  * file system args structures
    311  1.17    pooka  */
    312  1.16    pooka 
    313  1.16    pooka struct nfstestargs {
    314  1.16    pooka 	pid_t ta_childpid;
    315  1.16    pooka 	char ta_ethername[MAXPATHLEN];
    316  1.16    pooka };
    317  1.16    pooka 
    318  1.17    pooka struct puffstestargs {
    319  1.17    pooka 	uint8_t			*pta_pargs;
    320  1.17    pooka 	size_t			pta_pargslen;
    321  1.17    pooka 
    322  1.17    pooka 	int			pta_pflags;
    323  1.17    pooka 	pid_t			pta_childpid;
    324  1.17    pooka 
    325  1.17    pooka 	int			pta_rumpfd;
    326  1.17    pooka 	int			pta_servfd;
    327  1.17    pooka 
    328  1.17    pooka 	char			pta_dev[MAXPATHLEN];
    329  1.17    pooka 	char			pta_dir[MAXPATHLEN];
    330  1.17    pooka 
    331  1.17    pooka 	int			pta_mntflags;
    332  1.17    pooka 
    333  1.17    pooka 	int			pta_vfs_toserv_ops[PUFFS_VFS_MAX];
    334  1.17    pooka 	int			pta_vn_toserv_ops[PUFFS_VN_MAX];
    335  1.17    pooka };
    336  1.17    pooka 
    337   1.1    njoly #endif /* __H_FSMACROS_H_ */
    338