Whamcloud - gitweb
libquota: remove use of PATH_MAX and replace it with QUOTA_NAME_LEN
authorTheodore Ts'o <tytso@mit.edu>
Mon, 28 Nov 2011 01:31:36 +0000 (20:31 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 28 Nov 2011 03:40:24 +0000 (22:40 -0500)
commit2f7d855c632a5dd507669abc90ec452635a4a248
treecd4e7bc8d38e8085aac86b7745b7168bef58b03e
parent66df14687d6a905aa111ec7327357a3ae1ad3236
libquota: remove use of PATH_MAX and replace it with QUOTA_NAME_LEN

PATH_MAX is not portable (for example, it doesn't exist on the Hurd).
So replace it with a new define, which defines the maximum length of
the base quota name.  As it turns out, this is substantially smaller
than PATH_MAX.

Also move the definitions relating to quotaio.c from mkquota.h to
quotaio.h, as a cleanup.

Addresses-Debian-Bug: #649689

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/quota.c
lib/quota/mkquota.h
lib/quota/quotaio.c
lib/quota/quotaio.h