spa_misc.c (269416) | spa_misc.c (269418) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1924 unchanged lines hidden (view full) --- 1933} 1934 1935boolean_t 1936spa_writeable(spa_t *spa) 1937{ 1938 return (!!(spa->spa_mode & FWRITE)); 1939} 1940 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 1924 unchanged lines hidden (view full) --- 1933} 1934 1935boolean_t 1936spa_writeable(spa_t *spa) 1937{ 1938 return (!!(spa->spa_mode & FWRITE)); 1939} 1940 |
1941/* 1942 * Returns true if there is a pending sync task in any of the current 1943 * syncing txg, the current quiescing txg, or the current open txg. 1944 */ 1945boolean_t 1946spa_has_pending_synctask(spa_t *spa) 1947{ 1948 return (!txg_all_lists_empty(&spa->spa_dsl_pool->dp_sync_tasks)); 1949} 1950 |
|
1941int 1942spa_mode(spa_t *spa) 1943{ 1944 return (spa->spa_mode); 1945} 1946 1947uint64_t 1948spa_bootfs(spa_t *spa) --- 69 unchanged lines hidden --- | 1951int 1952spa_mode(spa_t *spa) 1953{ 1954 return (spa->spa_mode); 1955} 1956 1957uint64_t 1958spa_bootfs(spa_t *spa) --- 69 unchanged lines hidden --- |