Lines Matching refs:file

186  *   This is to update the file attributes like size, type. This sends a LOOKUP msg of nfs
187 * to get latest file attributes.
212 /* Update the file handle */
222 /* Save the file attributes */
250 /* There are no more references to the file structure. Now we need to
251 * free up all resources associated with the open file.
253 * First, find our file structure in the list of file structures
259 /* Assume file structure will not be found. This should never happen. */
271 /* Yes.. remove it from the list of file structures */
286 /* Then deallocate the file structure and return success */
315 /* Extract the file mode, file type, and file size. */
636 /* Get the file attributes */
651 /* Save the file attributes */
872 /* Initialize the file private data.
874 * Copy the file handle.
886 /* Save the file attributes */
1025 /* Copy the variable length, directory file handle */
1108 * file?
1132 /* There is an entry. Skip over the file ID and point to the length */
1171 /* Get the file attributes associated with this name and return
1172 * the file type.
1209 /* There is an entry. Skip over the file ID and point to the length */
1258 /* Set the dirent file type */
1269 case NFREG: /* Regular file */
1277 case NFBLK: /* Block special device file */
1282 case NFCHR: /* Character special device file */
1337 /* Copy the variable length, 'from' directory file handle */
1357 /* Copy the variable length, 'to' directory file handle */
1440 /* Copy the variable length, directory file handle */
1523 /* Initialize the file private data.
1525 * Copy the file handle.
1537 /* Save the file attributes */
1554 int vfs_nfs_write(struct file *filep, const char *buffer, size_t buflen)
1607 /* Check if the file size would exceed the range of off_t */
1667 /* Copy the variable length, file handle */
1676 /* Copy the file offset */
1726 /* Check if normal file attributes follow */
1731 /* Yes.. Update the cached file status in the file structure. */
1808 /* Check if the file size would exceed the range of off_t */
1816 /* writepage cannot exceed the file range */
1878 /* Copy the variable length, file handle */
1887 /* Copy the file offset */
1937 /* Check if normal file attributes follow */
1942 /* Yes.. Update the cached file status in the file structure. */
1977 off_t vfs_nfs_seek(struct file *filep, off_t offset, int whence)
2007 case SEEK_END: /* The offset is set to the size of the file plus offset bytes. */
2016 /* Attempts to set the position beyound the end of file will
2017 * work if the file is open for write access.
2086 /* Get the number of bytes left in the file and truncate read count so that
2087 * it does not exceed the number of bytes left in the file.
2092 nfs_debug_info("readpage out of file range: %d\n", error);
2102 /* Now loop until we fill the user buffer (or hit the end of the file) */
2127 /* Copy the variable length, file handle */
2136 /* Copy the file offset */
2181 /* Check if we hit the end of file */
2197 ssize_t vfs_nfs_read(struct file *filep, char *buffer, size_t buflen)
2237 /* Get the number of bytes left in the file and truncate read count so that
2238 * it does not exceed the number of bytes left in the file.
2247 /* Now loop until we fill the user buffer (or hit the end of the file) */
2272 /* Copy the variable length, file handle */
2281 /* Copy the file offset */
2326 /* Check if we hit the end of file */
2362 /* Copy the variable length, directory file handle */
2371 /* Copy the variable-length file name */
2394 * the file.
2460 /* Save the file handle in the file data structure */
2465 nfs_debug_error("no file handle follows\n");
2478 /* Save the attributes in the file data structure */
2483 nfs_debug_info("WARNING: no file attributes\n");
2487 /* Initialize the file attributes */
2495 /* Attach the private data to the struct file instance */
2500 * cannot unmount the file system if this list is not empty!
2568 /* Copy the variable length, directory file handle */
2577 /* Copy the variable-length file name */
2630 /* Copy the variable length, directory file handle */
2680 int vfs_nfs_close_file(struct file *filep)
2710 /* Assume file structure will not be found. This should never happen. */
2722 /* Yes.. remove it from the list of file structures */
2737 /* Then deallocate the file structure and return success */
2796 /* Save the root file system attributes */
2931 * file handle.
2967 /* Copy the variable length, directory file handle */
3002 /* Indicate that the file now has zero length */
3022 * at the list of file structures in the mount structure. If this list
3039 * no open file references.
3046 /* No open file... Umount the file system. */
3080 static int vfs_nfs_open(struct file *filep)
3103 /* If the file handle is stale, update it */