Re: Regarding handling of file renames in Btrfs

2017-09-16 Thread Hans van Kranenburg
On 09/16/2017 02:40 PM, Martin Raiber wrote: > Hi, > > On 16.09.2017 14:27 Hans van Kranenburg wrote: >> On 09/10/2017 01:50 AM, Rohan Kadekodi wrote: >>> I was trying to understand how file renames are handled in Btrfs. I >>> read the code documentation, but had a problem understanding a few >>>

Re: Regarding handling of file renames in Btrfs

2017-09-16 Thread Martin Raiber
Hi, On 16.09.2017 14:27 Hans van Kranenburg wrote: > On 09/10/2017 01:50 AM, Rohan Kadekodi wrote: >> I was trying to understand how file renames are handled in Btrfs. I >> read the code documentation, but had a problem understanding a few >> things. >> >> During a file rename,

Re: Regarding handling of file renames in Btrfs

2017-09-16 Thread Hans van Kranenburg
Hi, On 09/10/2017 01:50 AM, Rohan Kadekodi wrote: > > I was trying to understand how file renames are handled in Btrfs. I > read the code documentation, but had a problem understanding a few > things. > > During a file rename, btrfs_commit_transaction() is called which is > because Btrfs has to

Re: Regarding handling of file renames in Btrfs

2017-09-10 Thread Qu Wenruo
On 2017年09月10日 22:34, Martin Raiber wrote: Hi, On 10.09.2017 08:45 Qu Wenruo wrote: On 2017年09月10日 14:41, Qu Wenruo wrote: On 2017年09月10日 07:50, Rohan Kadekodi wrote: Hello, I was trying to understand how file renames are handled in Btrfs. I read the code documentation, but had a

Re: Regarding handling of file renames in Btrfs

2017-09-10 Thread Qu Wenruo
On 2017年09月10日 22:32, Rohan Kadekodi wrote: Thank you for the prompt and elaborate answers! However, I think I was unclear in my questions, and I apologize for the confusion. What I meant was that for a file rename, when I check the blktrace output, there are 2 writes of 256KB each starting

Re: Regarding handling of file renames in Btrfs

2017-09-10 Thread Martin Raiber
Hi, On 10.09.2017 08:45 Qu Wenruo wrote: > > > On 2017年09月10日 14:41, Qu Wenruo wrote: >> >> >> On 2017年09月10日 07:50, Rohan Kadekodi wrote: >>> Hello, >>> >>> I was trying to understand how file renames are handled in Btrfs. I >>> read the code documentation, but had a problem understanding a few

Re: Regarding handling of file renames in Btrfs

2017-09-10 Thread Rohan Kadekodi
Thank you for the prompt and elaborate answers! However, I think I was unclear in my questions, and I apologize for the confusion. What I meant was that for a file rename, when I check the blktrace output, there are 2 writes of 256KB each starting from byte number: 13373440 When I check

Re: Regarding handling of file renames in Btrfs

2017-09-10 Thread Qu Wenruo
On 2017年09月10日 14:41, Qu Wenruo wrote: On 2017年09月10日 07:50, Rohan Kadekodi wrote: Hello, I was trying to understand how file renames are handled in Btrfs. I read the code documentation, but had a problem understanding a few things. During a file rename, btrfs_commit_transaction() is

Re: Regarding handling of file renames in Btrfs

2017-09-10 Thread Qu Wenruo
On 2017年09月10日 07:50, Rohan Kadekodi wrote: Hello, I was trying to understand how file renames are handled in Btrfs. I read the code documentation, but had a problem understanding a few things. During a file rename, btrfs_commit_transaction() is called which is because Btrfs has to commit

Re: Regarding handling of file renames in Btrfs

2017-09-09 Thread Duncan
Rohan Kadekodi posted on Sat, 09 Sep 2017 18:50:09 -0500 as excerpted: > Hello, > > I was trying to understand how file renames are handled in Btrfs. I read > the code documentation, but had a problem understanding a few things. > > During a file rename, btrfs_commit_transaction() is called

Regarding handling of file renames in Btrfs

2017-09-09 Thread Rohan Kadekodi
Hello, I was trying to understand how file renames are handled in Btrfs. I read the code documentation, but had a problem understanding a few things. During a file rename, btrfs_commit_transaction() is called which is because Btrfs has to commit the whole FS before storing the information