mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	 8c64fe0442
			
		
	
	
		8c64fe0442
		
			
		
	
	
	
	
		
			
			In CentOS 7.5 the kernel provided a compatibility wrapper to support O_TMPFILE. This results in the test setup script correctly detecting kernel support. But the ZFS module was built without O_TMPFILE support due to the non-standard CentOS kernel interface. Handle this case by updating the setup check to fail either when the kernel or the ZFS module fail to provide support. The reason will be clearly logged in the test results. Reviewed-by: Chunwei Chen <tuxoko@gmail.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #7528
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/ksh -p
 | |
| #
 | |
| # CDDL HEADER START
 | |
| #
 | |
| # The contents of this file are subject to the terms of the
 | |
| # Common Development and Distribution License (the "License").
 | |
| # You may not use this file except in compliance with the License.
 | |
| #
 | |
| # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 | |
| # or http://www.opensolaris.org/os/licensing.
 | |
| # See the License for the specific language governing permissions
 | |
| # and limitations under the License.
 | |
| #
 | |
| # When distributing Covered Code, include this CDDL HEADER in each
 | |
| # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 | |
| # If applicable, add the following below this CDDL HEADER, with the
 | |
| # fields enclosed by brackets "[]" replaced with your own identifying
 | |
| # information: Portions Copyright [yyyy] [name of copyright owner]
 | |
| #
 | |
| # CDDL HEADER END
 | |
| #
 | |
| 
 | |
| #
 | |
| # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 | |
| # Use is subject to license terms.
 | |
| #
 | |
| 
 | |
| #
 | |
| # Copyright (c) 2013 by Delphix. All rights reserved.
 | |
| #
 | |
| 
 | |
| . $STF_SUITE/include/libtest.shlib
 | |
| 
 | |
| DISK=${DISKS%% *}
 | |
| default_setup_noexit $DISK
 | |
| 
 | |
| if ! $STF_SUITE/tests/functional/tmpfile/tmpfile_test $TESTDIR; then
 | |
| 	default_cleanup_noexit
 | |
| 	log_unsupported "The kernel/filesystem doesn't support O_TMPFILE"
 | |
| fi
 | |
| 
 | |
| log_pass
 |