pseudofs.c (b331ec01c48f4ad8f999782d1b1766516add6118) | pseudofs.c (f257b7a54b4fe77840cf694314bdc401e00c31a1) |
---|---|
1/*- 2 * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 281 unchanged lines hidden (view full) --- 290{ 291 struct pfs_info *pi; 292 int error; 293 294 pi = (struct pfs_info *)mp->mnt_data; 295 296 /* XXX do stuff with pi... */ 297 | 1/*- 2 * Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 281 unchanged lines hidden (view full) --- 290{ 291 struct pfs_info *pi; 292 int error; 293 294 pi = (struct pfs_info *)mp->mnt_data; 295 296 /* XXX do stuff with pi... */ 297 |
298 error = vflush(mp, 0, (mntflags & MNT_FORCE) ? FORCECLOSE : 0); | 298 error = vflush(mp, 0, (mntflags & MNT_FORCE) ? FORCECLOSE : 0, td); |
299 return (error); 300} 301 302/* 303 * Return a root vnode 304 */ 305int | 299 return (error); 300} 301 302/* 303 * Return a root vnode 304 */ 305int |
306pfs_root(struct mount *mp, struct vnode **vpp) | 306pfs_root(struct mount *mp, struct vnode **vpp, struct thread *td) |
307{ 308 struct pfs_info *pi; 309 310 pi = (struct pfs_info *)mp->mnt_data; 311 return pfs_vncache_alloc(mp, vpp, pi->pi_root, NO_PID); 312} 313 314/* --- 98 unchanged lines hidden --- | 307{ 308 struct pfs_info *pi; 309 310 pi = (struct pfs_info *)mp->mnt_data; 311 return pfs_vncache_alloc(mp, vpp, pi->pi_root, NO_PID); 312} 313 314/* --- 98 unchanged lines hidden --- |