Lines Matching defs:file
30 [2:07] <geist> when you open the file in the driver, use stat() to see if it's a file. if it is, call ioctl 10000 on the underlying file
32 [2:08] <geist> bfs is probably doing the same algorithm, and seeing that you are a device and not a file, and so it doesn't call 10000 on you
35 [2:09] <geist> bfs is the only fs that's reasonably safe being reentered like that, but only if the underlying one is opened with the cache disabled on that file
36 [2:09] <geist> that ioctl is used on the swap file as well
77 char file[B_PATH_NAME_LENGTH];
164 info.file[0] = '\0';
184 // open the file
191 // get the file size
199 // If we shall use the supplied geometry, we enlarge the file, if
200 // necessary. Otherwise we fill in the geometry according to the size of the file.
245 // Disable caching for underlying file! (else this driver will deadlock)
246 // We probably cannot resize the file once the cache has been disabled!
249 // Work around a bug in BFS: the file is not synced before the cache is
271 strcpy(info.file, initInfo->file_name);
436 // adjust position and numBytes according to the file size
469 // adjust position and numBytes according to the file size
535 // first, look if we already have opened that file and see
542 && !strcmp(gDeviceInfos[i].file, driveInfo->file_name)) {
707 // and close the underlying file, open it for other uses
709 TRACE(("virtualdrive: close file descriptor\n"));
730 strcpy(driveInfo->file_name, info.file);