vdev_file.c (332525) | vdev_file.c (339034) |
---|---|
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 --- 253 unchanged lines hidden (view full) --- 262 263vdev_ops_t vdev_file_ops = { 264 vdev_file_open, 265 vdev_file_close, 266 vdev_default_asize, 267 vdev_file_io_start, 268 vdev_file_io_done, 269 NULL, | 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 --- 253 unchanged lines hidden (view full) --- 262 263vdev_ops_t vdev_file_ops = { 264 vdev_file_open, 265 vdev_file_close, 266 vdev_default_asize, 267 vdev_file_io_start, 268 vdev_file_io_done, 269 NULL, |
270 NULL, |
|
270 vdev_file_hold, 271 vdev_file_rele, 272 NULL, 273 VDEV_TYPE_FILE, /* name of this vdev type */ 274 B_TRUE /* leaf vdev */ 275}; 276 277/* 278 * From userland we access disks just like files. 279 */ 280#ifndef _KERNEL 281 282vdev_ops_t vdev_disk_ops = { 283 vdev_file_open, 284 vdev_file_close, 285 vdev_default_asize, 286 vdev_file_io_start, 287 vdev_file_io_done, 288 NULL, | 271 vdev_file_hold, 272 vdev_file_rele, 273 NULL, 274 VDEV_TYPE_FILE, /* name of this vdev type */ 275 B_TRUE /* leaf vdev */ 276}; 277 278/* 279 * From userland we access disks just like files. 280 */ 281#ifndef _KERNEL 282 283vdev_ops_t vdev_disk_ops = { 284 vdev_file_open, 285 vdev_file_close, 286 vdev_default_asize, 287 vdev_file_io_start, 288 vdev_file_io_done, 289 NULL, |
290 NULL, |
|
289 vdev_file_hold, 290 vdev_file_rele, 291 NULL, 292 VDEV_TYPE_DISK, /* name of this vdev type */ 293 B_TRUE /* leaf vdev */ 294}; 295 296#endif | 291 vdev_file_hold, 292 vdev_file_rele, 293 NULL, 294 VDEV_TYPE_DISK, /* name of this vdev type */ 295 B_TRUE /* leaf vdev */ 296}; 297 298#endif |