• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ecryptfs/

Lines Matching defs:to

23  * along with this program; if not, write to the Free Software
44 * Returns unlocked and up-to-date page (if ok), with increased
99 /* Start and end are in the same page; we just need to
100 * set a portion of the existing page to zero's */
197 * @param page Page to fill
198 * @param lower_page_index Index of the page in the lower file to get
276 * @page: ecryptfs associated page to stick the read data into
364 static int fill_zeros_to_end_of_page(struct page *page, unsigned int to)
372 if (to > end_byte_in_page)
373 end_byte_in_page = to;
382 * seek past the end of the file, eCryptfs fills in 0's through to the
383 * current location. The code to fill in the 0's to all the
388 unsigned from, unsigned to)
392 if (from == 0 && to == PAGE_CACHE_SIZE)
394 up to date. */
402 unsigned from, unsigned to)
406 if (from == 0 && to == PAGE_CACHE_SIZE)
408 up to date. */
419 printk(KERN_ERR "Error on attempt to "
420 "truncate to (higher) offset [%lld];"
461 * Writes the lower file size to the first 8 bytes of the header.
528 printk(KERN_ERR "Out of memory whilst attempting to write "
529 "inode size to xattr\n");
563 printk(KERN_ERR "Error whilst attempting to write inode size "
564 "to lower file xattr; rc = [%d]\n", rc);
601 ecryptfs_printk(KERN_ERR, "Error attempting to grab "
667 ecryptfs_printk(KERN_ERR, "Error attempting to get page "
677 ecryptfs_printk(KERN_ERR, "Error attempting to commit page "
690 * @to: Ignored
692 * This is where we encrypt the data and pass the encrypted data to
697 unsigned from, unsigned to)
720 "(page w/ index = [0x%.16x], to = [%d])\n", page->index,
721 to);
722 rc = fill_zeros_to_end_of_page(page, to);
724 ecryptfs_printk(KERN_WARNING, "Error attempting to fill "
739 pos = (page->index << PAGE_CACHE_SHIFT) + to;
742 ecryptfs_printk(KERN_DEBUG, "Expanded file size to "
749 printk(KERN_ERR "Error writing inode size to metadata; "
767 * @num_zeros: The number of zeros to write
769 * Write a specified number of zero's to a page.
771 * (start + num_zeros) must be less than or equal to PAGE_CACHE_SIZE
788 ecryptfs_printk(KERN_ERR, "Error preparing to write zero's "
789 "to page at index [0x%.16x]\n",
797 ecryptfs_printk(KERN_ERR, "Error attempting to write zero's "
798 "to remainder of page at index [0x%.16x]\n",