equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 /* |
21 /* |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. |
|
23 * Copyright (c) 2011 by Delphix. All rights reserved. |
23 */ |
24 */ |
24 |
25 |
25 #include <sys/zio.h> |
26 #include <sys/zio.h> |
26 #include <sys/spa.h> |
27 #include <sys/spa.h> |
27 #include <sys/dmu.h> |
28 #include <sys/dmu.h> |
1401 *towrite += (3 + (add ? 4 : 0)) * SPA_MAXBLOCKSIZE; |
1402 *towrite += (3 + (add ? 4 : 0)) * SPA_MAXBLOCKSIZE; |
1402 return (err); |
1403 return (err); |
1403 } |
1404 } |
1404 |
1405 |
1405 /* |
1406 /* |
1406 * We lock the zap with adding == FALSE. Because, if we pass |
1407 * We lock the zap with adding == FALSE. Because, if we pass |
1407 * the actual value of add, it could trigger a mzap_upgrade(). |
1408 * the actual value of add, it could trigger a mzap_upgrade(). |
1408 * At present we are just evaluating the possibility of this operation |
1409 * At present we are just evaluating the possibility of this operation |
1409 * and hence we donot want to trigger an upgrade. |
1410 * and hence we donot want to trigger an upgrade. |
1410 */ |
1411 */ |
1411 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, &zap); |
1412 err = zap_lockdir(os, zapobj, NULL, RW_READER, TRUE, FALSE, &zap); |