spa_misc.c (332525) | spa_misc.c (332530) |
---|---|
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 --- 421 unchanged lines hidden (view full) --- 430SYSCTL_INT(_vfs_zfs, OID_AUTO, spa_slop_shift, CTLFLAG_RWTUN, 431 &spa_slop_shift, 0, 432 "Shift value of reserved space (1/(2^spa_slop_shift))."); 433uint64_t spa_min_slop = 128 * 1024 * 1024; 434SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, spa_min_slop, CTLFLAG_RWTUN, 435 &spa_min_slop, 0, 436 "Minimal value of reserved space"); 437 | 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 --- 421 unchanged lines hidden (view full) --- 430SYSCTL_INT(_vfs_zfs, OID_AUTO, spa_slop_shift, CTLFLAG_RWTUN, 431 &spa_slop_shift, 0, 432 "Shift value of reserved space (1/(2^spa_slop_shift))."); 433uint64_t spa_min_slop = 128 * 1024 * 1024; 434SYSCTL_UQUAD(_vfs_zfs, OID_AUTO, spa_min_slop, CTLFLAG_RWTUN, 435 &spa_min_slop, 0, 436 "Minimal value of reserved space"); 437 |
438/*PRINTFLIKE2*/ 439void 440spa_load_failed(spa_t *spa, const char *fmt, ...) 441{ 442 va_list adx; 443 char buf[256]; 444 445 va_start(adx, fmt); 446 (void) vsnprintf(buf, sizeof (buf), fmt, adx); 447 va_end(adx); 448 449 zfs_dbgmsg("spa_load(%s): FAILED: %s", spa->spa_name, buf); 450} 451 452/*PRINTFLIKE2*/ 453void 454spa_load_note(spa_t *spa, const char *fmt, ...) 455{ 456 va_list adx; 457 char buf[256]; 458 459 va_start(adx, fmt); 460 (void) vsnprintf(buf, sizeof (buf), fmt, adx); 461 va_end(adx); 462 463 zfs_dbgmsg("spa_load(%s): %s", spa->spa_name, buf); 464} 465 |
|
438/* 439 * ========================================================================== 440 * SPA config locking 441 * ========================================================================== 442 */ 443static void 444spa_config_lock_init(spa_t *spa) 445{ --- 1831 unchanged lines hidden --- | 466/* 467 * ========================================================================== 468 * SPA config locking 469 * ========================================================================== 470 */ 471static void 472spa_config_lock_init(spa_t *spa) 473{ --- 1831 unchanged lines hidden --- |