io.c (4196d2f0308cb1ae13ed450424ab7dfe154acda9) | io.c (459b4e66129d091a11e9886ecc15a8bf9f7f3d92) |
---|---|
1/* 2 * Block layer I/O functions 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 191 unchanged lines hidden (view full) --- 200 return; 201 } 202 bs->bl.opt_transfer_length = bs->file->bl.opt_transfer_length; 203 bs->bl.max_transfer_length = bs->file->bl.max_transfer_length; 204 bs->bl.min_mem_alignment = bs->file->bl.min_mem_alignment; 205 bs->bl.opt_mem_alignment = bs->file->bl.opt_mem_alignment; 206 } else { 207 bs->bl.min_mem_alignment = 512; | 1/* 2 * Block layer I/O functions 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 191 unchanged lines hidden (view full) --- 200 return; 201 } 202 bs->bl.opt_transfer_length = bs->file->bl.opt_transfer_length; 203 bs->bl.max_transfer_length = bs->file->bl.max_transfer_length; 204 bs->bl.min_mem_alignment = bs->file->bl.min_mem_alignment; 205 bs->bl.opt_mem_alignment = bs->file->bl.opt_mem_alignment; 206 } else { 207 bs->bl.min_mem_alignment = 512; |
208 bs->bl.opt_mem_alignment = 512; | 208 bs->bl.opt_mem_alignment = getpagesize(); |
209 } 210 211 if (bs->backing_hd) { 212 bdrv_refresh_limits(bs->backing_hd, &local_err); 213 if (local_err) { 214 error_propagate(errp, local_err); 215 return; 216 } --- 2329 unchanged lines hidden --- | 209 } 210 211 if (bs->backing_hd) { 212 bdrv_refresh_limits(bs->backing_hd, &local_err); 213 if (local_err) { 214 error_propagate(errp, local_err); 215 return; 216 } --- 2329 unchanged lines hidden --- |