Theodore Ts'o df981d03ee ext4: add max_dir_size_kb mount option
Very large directories can cause significant performance problems, or
perhaps even invoke the OOM killer, if the process is running in a
highly constrained memory environment (whether it is VM's with a small
amount of memory or in a small memory cgroup).

So it is useful, in cloud server/data center environments, to be able
to set a filesystem-wide cap on the maximum size of a directory, to
ensure that directories never get larger than a sane size.  We do this
via a new mount option, max_dir_size_kb.  If there is an attempt to
grow the directory larger than max_dir_size_kb, the system call will
return ENOSPC instead.

Google-Bug-Id: 6863013

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2012-08-17 09:48:17 -04:00
..
2011-09-27 18:08:04 +02:00
2012-01-03 22:54:57 -05:00
2010-10-05 09:08:21 -07:00
2009-08-19 10:40:13 -07:00
2012-05-10 11:45:31 +01:00
2011-11-04 12:01:48 -07:00
2007-07-31 15:39:38 -07:00
2011-09-27 18:08:04 +02:00
2010-05-10 11:56:30 +02:00
2011-03-31 11:26:23 -03:00
2008-07-26 12:00:05 -07:00
2011-03-31 11:26:23 -03:00
2012-07-14 16:34:47 +04:00
2006-11-30 04:58:40 +01:00
2012-01-03 22:55:03 -05:00
2006-12-07 08:39:44 -08:00
2007-02-12 09:48:40 -08:00
2011-05-24 11:17:13 -05:00
2008-11-12 17:17:17 -08:00