]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ceph: fix f_namelen reported by statfs
authorSage Weil <sage@newdream.net>
Tue, 1 Jun 2010 19:51:12 +0000 (12:51 -0700)
committerSage Weil <sage@newdream.net>
Tue, 1 Jun 2010 23:56:03 +0000 (16:56 -0700)
commit558d3499bd059d4534b1f2b69dc1c562acc733fe
tree6a8a46b1b8a0588506160624cffebed157a4455e
parent205475679a74fe40b63a1c7f41110fdb64daa8b9
ceph: fix f_namelen reported by statfs

We were setting f_namelen in kstatfs to PATH_MAX instead of NAME_MAX.
That disagrees with ceph_lookup behavior (which checks against NAME_MAX),
and also makes the pjd posix test suite spit out ugly errors because with
can't clean up its temporary files.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/super.c