Re: Overwriting copy functionality in filesystem

2019-03-28 Thread Valdis Klētnieks
On Fri, 29 Mar 2019 00:00:17 +0530, Bharath Vedartham said: > I was thinking of a use case where we are copying a huge file (say 100 > GB), if we do copy-on-write we can speed up /bin/cp for such files i > feel. Any comments on this? Hmm.. wait a minute. What definition of "copy on write" are yo

Re: Overwriting copy functionality in filesystem

2019-03-28 Thread Bharath Vedartham
On Sun, Mar 24, 2019 at 10:06:36AM -0400, Valdis Klētnieks wrote: > On Sun, 24 Mar 2019 18:48:08 +0530, Bharath Vedartham said: > > > I was interested in implementing copy-on-write for my filesystem(for fun > > :P). When I do a "cp" operation, I do not want to create a seperate > > inode for the n

Re: Overwriting copy functionality in filesystem

2019-03-24 Thread Valdis Klētnieks
On Sun, 24 Mar 2019 18:48:08 +0530, Bharath Vedartham said: > I was interested in implementing copy-on-write for my filesystem(for fun > :P). When I do a "cp" operation, I do not want to create a seperate > inode for the new file. I only want to create a inode when I make a > change to the file.

Re: Overwriting copy functionality in filesystem

2019-03-24 Thread Bharath Vedartham
On Sat, Mar 23, 2019 at 08:03:20PM +0100, Bernd Petrovitsch wrote: > Hi all! > > On 23/03/2019 17:59, Bharath Vedartham wrote: > [..] > > 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 t

Re: Overwriting copy functionality in filesystem

2019-03-24 Thread Bharath Vedartham
On Sat, Mar 23, 2019 at 03:01:56PM -0400, Valdis Klētnieks wrote: > 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

Re: Overwriting copy functionality in filesystem

2019-03-23 Thread Greg KH
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 co

Re: Overwriting copy functionality in filesystem

2019-03-23 Thread Bernd Petrovitsch
Hi all! On 23/03/2019 17:59, Bharath Vedartham wrote: [..] > 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 Yes. > write when we execute the copy the file/dir. >

Re: Overwriting copy functionality in filesystem

2019-03-23 Thread Valdis Klētnieks
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 y

Overwriting copy functionality in filesystem

2019-03-23 Thread Bharath Vedartham
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 file