Whamcloud - gitweb
b=24226 Only force the mode change if we're changing the size as well 1.8.5.51 v1_8_5_51
authorJames Simmons <simmonsja@ornl.gov>
Fri, 17 Dec 2010 22:57:43 +0000 (23:57 +0100)
committerJohann Lombardi <johann.lombardi@oracle.com>
Fri, 17 Dec 2010 22:57:43 +0000 (23:57 +0100)
commit31585737203acd82f3a46ffaf208600d702b5307
tree7680f4cbe63057a1da8b31b83cef88d27958b168
parent06cd51b3892a99983051c8c4e6d8978ed00c3463
b=24226 Only force the mode change if we're changing the size as well

i=johann

The offending code was added by commit 77ba4b2141d04180211efa8a75c11ab0abf7fafb to remove
setgid/setuid bits when do_truncate() is called on the file. We should only force the change when
that occurs, similarly to ll_setattr() in lustre/llite/llite_lib.c
lustre/mds/mds_reint.c
lustre/tests/sanity.sh