]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic: clear of suid/sgid on direct write
authorEryu Guan <eguan@redhat.com>
Thu, 26 May 2016 05:59:48 +0000 (13:59 +0800)
committerEryu Guan <eguan@redhat.com>
Wed, 15 Jun 2016 07:32:57 +0000 (15:32 +0800)
commit6f54d8136b2ae6499306f0728de48a57ec743cf2
tree91f1e44068bd8292e94815a6a42f474df41771af
parent86e7366e84c29082ffcaf20c43e8239a10410d64
generic: clear of suid/sgid on direct write

Check that suid/sgid bits are cleared on direct write. XFS triggered
WARN_ON_ONCE in this case. Patchset from Jan Kara fixed the warning:

http://oss.sgi.com/archives/xfs/2014-12/msg00071.html

This test is inspired by a test case from Eric Sandeen, and follows
the test steps in generic/193. This test requires direct I/O, it's
not added to generic/193 but to a new test, so that generic/193
still runs on filesystems don't have direct I/O support.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/355 [new file with mode: 0755]
tests/generic/355.out [new file with mode: 0644]
tests/generic/group