public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* journaled quota file question
@ 2009-10-27  0:14 Dmitry Monakhov
  2009-10-31 18:59 ` Dmitry Monakhov
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Monakhov @ 2009-10-27  0:14 UTC (permalink / raw)
  To: linux-ext4

While looking to ext3/4 quota code I'm wondering
Why do we have to place journaled quota file on fs root?
In some situations it may be useful to place it deeper for example:
/root/dir/quota_file
The only reason what comes in to my mind is that some one
may rename parent folder rename("/root/dir", "/root/dir2")
Is this the only reason?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: journaled quota file question
  2009-10-27  0:14 journaled quota file question Dmitry Monakhov
@ 2009-10-31 18:59 ` Dmitry Monakhov
  2009-11-02 12:31   ` Jan Kara
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Monakhov @ 2009-10-31 18:59 UTC (permalink / raw)
  To: linux-ext4; +Cc: Jan Kara

Dmitry Monakhov <dmonakhov@openvz.org> writes:

> While looking to ext3/4 quota code I'm wondering
> Why do we have to place journaled quota file on fs root?
> In some situations it may be useful to place it deeper for example:
> /root/dir/quota_file
> The only reason what comes in to my mind is that some one
> may rename parent folder rename("/root/dir", "/root/dir2")
> Is this the only reason?
add an author in cc:
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: journaled quota file question
  2009-10-31 18:59 ` Dmitry Monakhov
@ 2009-11-02 12:31   ` Jan Kara
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kara @ 2009-11-02 12:31 UTC (permalink / raw)
  To: Dmitry Monakhov; +Cc: linux-ext4

  Hi,

On Sat 31-10-09 21:59:44, Dmitry Monakhov wrote:
> Dmitry Monakhov <dmonakhov@openvz.org> writes:
> 
> > While looking to ext3/4 quota code I'm wondering
> > Why do we have to place journaled quota file on fs root?
> > In some situations it may be useful to place it deeper for example:
> > /root/dir/quota_file
> > The only reason what comes in to my mind is that some one
> > may rename parent folder rename("/root/dir", "/root/dir2")
> > Is this the only reason?
  Well, the reason is that we have to read & write the files during orphan
recovery on mount. A that time the filesystem is not fully set up so you
cannot use VFS directory traversal code and I didn't want to implement
ext[34] specific one. Also as you write above, if you have quota files in
some subdirectory, there are more possibilities for failure.
  Admittedly, I don't see a big point in having quota files in some other
directory. In fact, they should rather be system files not visible in
any directory but that requires rather non-trivial changes to repquota and
moving quotacheck functionality to fsck and I never got to doing that.

> add an author in cc:
  Thanks.

									Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-02 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27  0:14 journaled quota file question Dmitry Monakhov
2009-10-31 18:59 ` Dmitry Monakhov
2009-11-02 12:31   ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox