Lines Matching refs:file

3 	This file may be used under the terms of the Be Sample Code License.
17 #include "file.h"
28 static status_t findfile(nspace *vol, vnode *dir, const char *file,
90 if (buffer[0xb] == 0xf) { // long file name
93 dprintf("invalid long file name: reserved fields munged\n");
118 dprintf("error in long file name: hash values don't match\n");
158 dprintf("error: long file name too long\n");
164 dprintf("error: long file name (%s) hash and short file name "
289 // weird case where ./.. are stored as long file names
304 findfile_case(nspace *vol, vnode *dir, const char *file, ino_t *vnid,
307 return findfile(vol, dir, file, vnid, node, true, false, NULL);
312 findfile_nocase(nspace *vol, vnode *dir, const char *file, ino_t *vnid,
315 return findfile(vol, dir, file, vnid, node, false, false, NULL);
320 findfile_nocase_duplicates(nspace *vol, vnode *dir, const char *file,
323 return findfile(vol, dir, file, vnid, node, false, true, dups_exist);
328 findfile_case_duplicates(nspace *vol, vnode *dir, const char *file,
331 return findfile(vol, dir, file, vnid, node, true, true, dups_exist);
336 findfile(nspace *vol, vnode *dir, const char *file, ino_t *vnid,
339 /* Starting at the base, find the file in the subdir
353 // dprintf("findfile: %s in %Lx, case %d dups %d\n", file, dir->vnid, check_case, check_dups);
355 DPRINTF(1, ("findfile: %s in %" B_PRIdINO "\n", file, dir->vnid));
362 if (strcmp(file,".") == 0 && dir->vnid == vol->root_vnode.vnid) {
365 } else if (strcmp(file, "..") == 0 && dir->vnid == vol->root_vnode.vnid) {
386 if (!found_file && !strcmp(filename, file)) {
389 } else if (check_dups && !strcasecmp(filename, file)) {
393 if (!strcasecmp(filename, file)) {
548 if (buffer[0xb] != 0xf) { // not long file name
1034 dosfs_walk(fs_volume *_vol, fs_vnode *_dir, const char *file, ino_t *_vnid)
1036 /* Starting at the base, find file in the subdir, and return path
1037 string and vnode id of file. */
1045 DPRINTF(0, ("dosfs_walk: find %" B_PRIdINO "/%s\n", dir->vnid, file));
1047 result = findfile_case(vol, dir, file, _vnid, &vnode);
1075 DPRINTF(0, ("can't open read-only file for writing\n"));
1078 DPRINTF(0, ("can't open disk image file for writing\n"));
1102 * with the application than with the file system, anyway
1174 DPRINTF(0, ("dosfs_readdir: found file %s\n", entry->d_name));