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.0 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 4CDA7C43381 for ; Sat, 23 Mar 2019 17:01:42 +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 01B872183E for ; Sat, 23 Mar 2019 17:01:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eNHcQVJh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 01B872183E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1h7k1c-0005kp-OR for kernelnewbies@archiver.kernel.org; Sat, 23 Mar 2019 13:01:40 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1h7jzt-0003W6-1t for kernelnewbies@kernelnewbies.org; Sat, 23 Mar 2019 12:59:53 -0400 Received: by mail-pf1-x42f.google.com with SMTP id e24so2710988pfi.12 for ; Sat, 23 Mar 2019 09:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=PlkGDX8jETEPcJcP8CWPfm3AI3B+nxJUKEX9h7QuvG8=; b=eNHcQVJhYGBaKP7Uj7bx3+vyOp92g8JSvWUxJytCkKgwPUUwaEgtpRHFdYVRd/iBlO t6Iob3q2AvVU5M6nLPkjc2l0uwqM1tMcocCa9g7fYf5i6vSNfrBbqfTOGQ+oN57ZwpqN 624SGrNg0Ob23/tohaOmasK44kcgWXtqjrh7y8fYn9206B17i8TX80GkbdSILtbiPq3I g10XH1z14OaI0NS2VFVBts+QrxvAlzDcluxnH1MEl1EHU7WWhN4SliA//aqfTEIDeYNj 1+0nNl1w1dnEWdo2kNmcxnR0LSVoZyqtYcuKQ5ScuenvJRWbFjBXyiUunwlQTL9sykwo 25Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=PlkGDX8jETEPcJcP8CWPfm3AI3B+nxJUKEX9h7QuvG8=; b=ry/aZpCqHtspKq7+537cQn0rXeB/Q75yRlULk0eRZ/1frun32nDjENp/qAkw4gYOgQ Pz4Ioj8AJvqe+lwouU75V3nGgYtt93OMBR8Zi68I5uQtOiBsVtWRF8OOtjzsVyBWBfl+ nHPNY5Ifack0R8xODiRHCQyPaT7U2Q3YhGtEcWk4FJZ5Shq2iOq9NPbxqnwnE40O2PXk ZZ+v1uBC7cFzbPVh3lI0EGPX5aceabI3K/BsbfunEPXKH3rJzO0yrmfvbvAO/gDbMUNx loyCnPTsTgufO2J7WIMn3tJ9IRJKOJ9+Se9rScHk8U/I64Ff4UEcrnLJIH/ec1nEDrTM 1BNA== X-Gm-Message-State: APjAAAU2C3jntcxjBc9tfgQL2ZlG4YNz69hqjIDo88B/8HwMrpuDN+I3 U1W2SBOTNfzBqZSCvddTXfxkkooT X-Google-Smtp-Source: APXvYqx3hk5gYcfzCLVoiZIIOmPlm4eS7TOW3qIf3YnWt6TMZ25TS2i7lZydWIUwwbaYFbybLshvKw== X-Received: by 2002:a63:195:: with SMTP id 143mr14878406pgb.54.1553360390493; Sat, 23 Mar 2019 09:59:50 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.35]) by smtp.gmail.com with ESMTPSA id f10sm12084482pgo.55.2019.03.23.09.59.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Mar 2019 09:59:50 -0700 (PDT) Date: Sat, 23 Mar 2019 22:29:45 +0530 From: Bharath Vedartham To: kernelnewbies@kernelnewbies.org Subject: Overwriting copy functionality in filesystem Message-ID: <20190323165945.GA13199@bharath12345-Inspiron-5559> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) 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=archiver.kernel.org@kernelnewbies.org 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). Any ideas? Thanks _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies