Lines Matching full:file
6 * This file may be distributed under the terms of the GNU General Public License.
8 * This file contains the functions related to the catalog B-tree.
50 /* init some fields for the file record */
52 rec->file.Flags = HFS_FIL_USED | HFS_FIL_THD;
54 rec->file.Flags |= HFS_FIL_LOCK;
55 rec->file.FlNum = cpu_to_be32(cnid);
56 rec->file.CrDat = mtime;
57 rec->file.MdDat = mtime;
58 rec->file.BkDat = 0;
59 rec->file.UsrWds.fdType = HFS_SB(inode->i_sb)->s_type;
60 rec->file.UsrWds.fdCreator = HFS_SB(inode->i_sb)->s_creator;
79 * Add a new file or directory to the catalog B-tree and
218 * Delete the indicated file or directory.
241 struct hfs_cat_file file;
242 hfs_bnode_read(fd.bnode, &file, fd.entryoffset, sizeof(file));
243 if (be32_to_cpu(file.FlNum) == cnid) {
245 hfs_free_fork(sb, &file, HFS_FK_DATA);
247 hfs_free_fork(sb, &file, HFS_FK_RSRC);
255 rd->file->f_pos--;
284 * Rename a file or directory, possibly to a new directory.
356 if (type == HFS_CDR_FIL && !(entry.file.Flags & HFS_FIL_THD))