From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 230C3C43381 for ; Sat, 23 Mar 2019 19:05:59 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C66A7218B0 for ; Sat, 23 Mar 2019 19:05:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="sD9vv7an"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="lDbYgwmo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C66A7218B0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1h7lxk-0007DO-QX; Sat, 23 Mar 2019 15:05:48 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1h7lxj-0007DI-2b for kernelnewbies@kernelnewbies.org; Sat, 23 Mar 2019 15:05:47 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6F14C21A9F; Sat, 23 Mar 2019 15:05:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 23 Mar 2019 15:05:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=Pmcap4iSiU0v3hq3jCuykR86lyl lFlWhvbwCLtdHNCI=; b=sD9vv7anSF7Lzapxm+ZctyB700ETzddEZRfkF1Z340n NvEAHPg2Lyr3sIp2q5CvtBUBSB0Bh1qKqd/hLOGUVMJTpTHy9PrP7dPknf+NHQtg C1m/Q545SscIVxFIC2q1ChPlFB1MLmroWFx2PNDGtbSvz3KZJfON1npA70/0grKN kQ2Y+yT6iG7lwyTG8nXZqhtWOgII0yPUyTnziZY0JZA6nIXFh3/t70R4yU08Dghc hG72h+MTzwnjuHf5dF8/YQDmGZAyeFm+7zDf8Se3KiBPiOvmC2oAmzEwaBJVXUIk n0ZH7qM2znEPA8Xn3m1E9om9a1paEhI0f1kjcEFbc+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Pmcap4 iSiU0v3hq3jCuykR86lyllFlWhvbwCLtdHNCI=; b=lDbYgwmof/iGiMcxTV7pih GMtSE+eMxXU20Og9IN+NVXs//Snl8dVdk+xdf/vYziUx4E02SA32UfsdHcFoohIZ BoDJ9sCgQjAdE+fkJWaMngIitQn8N1iChAb9+735UDQRjiXWRausW2NoxmpUUPCJ e2vFKYuICdI4QTcBeQcG9IDFGbtnBPrFj47T8wt0B5/pYURt5hyWOcPg3QzEpvFm ngoaOjuNH+Q6yj66VSWAulO0IJ6+jtfUX8W6yD12eHVmYK8UlL0aQvQVxsB0zIeI kUevpOY6ctxbJ5z3DK66XVDfgyJC8gN0YS9RS9eJleBEB9yLwAqIUHmznU5B2d/A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrjeefgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujggfsehttd ertddtredvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucfkphepkeefrdekiedrkeelrddutdejnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id D8A501031A; Sat, 23 Mar 2019 15:05:41 -0400 (EDT) Date: Sat, 23 Mar 2019 20:05:39 +0100 From: Greg KH To: Bharath Vedartham Subject: Re: Overwriting copy functionality in filesystem Message-ID: <20190323190539.GB30609@kroah.com> References: <20190323165945.GA13199@bharath12345-Inspiron-5559> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190323165945.GA13199@bharath12345-Inspiron-5559> User-Agent: Mutt/1.11.4 (2019-03-13) Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Sat, Mar 23, 2019 at 10:29:45PM +0530, Bharath Vedartham wrote: > Hey everyone, > > I was wondering how we can overwrite the copy functionality while > writing our own filesystem in linux. > VFS does not offer any sort of API for copy. I think it calls create and > write when we execute the copy the file/dir. > I am interested in overwriting the way copy happens in my > filesystem(which I am writing for fun :p). There is no "copy" syscall, sorry. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies