From owner-freebsd-questions@FreeBSD.ORG Thu Apr 2 11:54:26 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9646106564A for ; Thu, 2 Apr 2009 11:54:26 +0000 (UTC) (envelope-from Balaji.Cherukuri@netapp.com) Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by mx1.freebsd.org (Postfix) with ESMTP id B56A88FC27 for ; Thu, 2 Apr 2009 11:54:26 +0000 (UTC) (envelope-from Balaji.Cherukuri@netapp.com) X-IronPort-AV: E=Sophos;i="4.39,313,1235980800"; d="scan'208,217";a="149176469" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 02 Apr 2009 04:26:16 -0700 Received: from sacrsexc2-prd.hq.netapp.com (sacrsexc2-prd.hq.netapp.com [10.99.115.28]) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id n32BQBbc028921 for ; Thu, 2 Apr 2009 04:26:16 -0700 (PDT) Received: from btcrsexc1-prd.hq.netapp.com ([10.73.251.109]) by sacrsexc2-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 2 Apr 2009 04:26:05 -0700 Received: from BTCMVEXC1-PRD.hq.netapp.com ([10.73.251.107]) by btcrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 2 Apr 2009 16:55:52 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Thu, 2 Apr 2009 16:54:50 +0530 Message-ID: <4C74F7F7256204408580B101D5A7CC0D06A3CDBD@BTCMVEXC1-PRD.hq.netapp.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: regardinf Virtual File system VOP_RENAME_APV function. Thread-Index: AcmzhaLM4Q+HOB94Ed7GhwAcJb7Xvg== From: "Cherukuri, Balaji" To: X-OriginalArrivalTime: 02 Apr 2009 11:25:52.0307 (UTC) FILETIME=[C7EE3830:01C9B385] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "Ramani, Balaji" Subject: regardinf Virtual File system VOP_RENAME_APV function. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 11:54:27 -0000 Hi FreeBSD Team, =20 I am implementing a stackable file system similar to NULLFS and I have = question on VOP_RENAME_APV function. =20 In VOP_RENAME_APV function: =20 VOP_RENAME_APV(struct vop_vector *vop, struct vop_rename_args *a) { int rc; =20 .... if (vop->vop_rename !=3D NULL) rc =3D vop->vop_rename(a); else rc =3D vop->vop_bypass(&a->a_gen); .... vop_rename_post(a, rc); return (rc); } =20 I want to know that what is the importance of vop_rename_post function. = Actually I returned "EXDEV" from my file system, but still = vop_rename_post function is doing rename operation. =20 I want to know whether it is having default implementation of rename = functionality, can I use this function for rename operation directly = because I do not have anything new to do in rename functionality. =20 Please let me know, Is there any document which will talk how to write = filesystem in FreeBSD environment?=20 =20 Thanks in advance, BalajiC