Re: ENOTEMPTY on rm -rf for snapshot and subvolume

2010-04-08 Thread Chris Mason
On Wed, Apr 07, 2010 at 05:44:20PM -0700, Harshavardhana wrote: Hi Everyone, Recently i created a snapshot of an existing volume which had some amount of data. Now that after creating the snapshot i have tried deleting the same snapshot. But i am getting ENOTEMPTY for

Re: ENOTEMPTY on rm -rf for snapshot and subvolume

2010-04-08 Thread Harshavardhana
On 04/08/2010 06:52 AM, Chris Mason wrote: But either in that case too returning ENOTEMPTY does confuse a user a lot. Isn't it valid just by returning EPERM will explain a lot to users saying that this is a snapshot of a subvolume or a parent subvolume which is not

ENOTEMPTY on rm -rf for snapshot and subvolume

2010-04-07 Thread Harshavardhana
Hi Everyone, Recently i created a snapshot of an existing volume which had some amount of data. Now that after creating the snapshot i have tried deleting the same snapshot. But i am getting ENOTEMPTY for rmdir. But when i see the actual files inside are deleted not the