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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED 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 5236BC43381 for ; Sat, 23 Mar 2019 19:02:48 +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 066AC218B0 for ; Sat, 23 Mar 2019 19:02:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 066AC218B0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu 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 1h7luD-0006lU-CB; Sat, 23 Mar 2019 15:02:09 -0400 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1h7luB-0006lN-Gy for kernelnewbies@kernelnewbies.org; Sat, 23 Mar 2019 15:02:07 -0400 Received: from mr1.cc.vt.edu (mail.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id x2NJ26qu010286 for ; Sat, 23 Mar 2019 15:02:06 -0400 Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by mr1.cc.vt.edu (8.14.7/8.14.7) with ESMTP id x2NJ21qB008646 for ; Sat, 23 Mar 2019 15:02:06 -0400 Received: by mail-qk1-f200.google.com with SMTP id m8so5049551qka.10 for ; Sat, 23 Mar 2019 12:02:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:date:message-id; bh=9Mh+hoqJuxQzajAf14Pad8Bzng55Y9HGAafmkwv2dI0=; b=sOEUC5aL6+d5uxvuNejSRnRtJvZaD+lBmnFEoD8j/HGgxbgwo+M1S6wJ+vv8THkzNS xhDYUIB6XwOd8V8fLVWl0Qufrixpm6VsmMaXUbM4QOT/wmMOik1uaY4okHTmD1x6Aabw /Vb0N+xCo24FOl4vumd6pJobKfuyTwgcd5kpzjt9d9C4K5izJKMiQKZKIpjxb/rs86u8 D+tKVxz+8WfG6Qy3cvr3kw/HcBxVb1nXWVT/rH5MmBp6cz07iUXZDPJ6z6wCCm0Dvv9/ 87uJLIgOaS4O4SPif48uLdtZ5b2VKbxCmGYjUA/cEONKy9FbRDTV0uvzdFeTlg0J0AB1 KaWg== X-Gm-Message-State: APjAAAU4SvfWnJ6OJu5B+MeBeckjw+dNuo2dbznpx4q/+XQ03+EdO1yV fbkos0BLqjfqf5a+/jnsrglWMtJh57ArB+kmeuZ3v7rH/g5cJGuc6YGAmYbAdWWVAETQMYvsscO bFfdT8mVkZqKCL6KwbpPx2KJHXPuxivZ+EHgj/04= X-Received: by 2002:aed:2307:: with SMTP id h7mr13763525qtc.87.1553367720968; Sat, 23 Mar 2019 12:02:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVg8e0j0sAIJ+87oAAYvFzlPS112q+Wd9VdxBUlO6BljHNG/nL0skLt38jSf3rQyt51CFo4w== X-Received: by 2002:aed:2307:: with SMTP id h7mr13763503qtc.87.1553367720765; Sat, 23 Mar 2019 12:02:00 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:4341::7ca]) by smtp.gmail.com with ESMTPSA id a57sm7209827qta.96.2019.03.23.12.01.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 23 Mar 2019 12:01:59 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Bharath Vedartham Subject: Re: Overwriting copy functionality in filesystem In-reply-to: <20190323165945.GA13199@bharath12345-Inspiron-5559> References: <20190323165945.GA13199@bharath12345-Inspiron-5559> Mime-Version: 1.0 Date: Sat, 23 Mar 2019 15:01:56 -0400 Message-ID: <13539.1553367716@turing-police> 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, 23 Mar 2019 22:29:45 +0530, Bharath Vedartham said: > 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. Which you can verify using strace. Which you should already be familiar with if you have the experience needed to write a usable filesystem. > I am interested in overwriting the way copy happens in my > filesystem(which I am writing for fun :p). And what, exactly, do you want copy to do differently on the API level, and on the file system level? _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies