• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/cups-408/cups/systemv/

Lines Matching refs:ni

63  * @ni:		ntfs inode of $LogFile to which the restart page header belongs
65 * @pos: position in @ni at which the restart page header resides
73 static BOOL ntfs_restart_page_header_is_valid(ntfs_inode *ni,
92 ntfs_error(ni->vol->mp, "$LogFile uses unsupported page "
101 ntfs_error(ni->vol->mp, "Found restart area in incorrect "
108 ntfs_error(ni->vol->mp, "$LogFile version %d.%d is not "
125 ntfs_error(ni->vol->mp, "$LogFile restart page specifies "
134 ntfs_error(ni->vol->mp, "$LogFile restart page specifies "
149 ntfs_error(ni->vol->mp, "$LogFile restart page specifies "
158 ntfs_error(ni->vol->mp, "$LogFile restart page is not "
169 * @ni: ntfs inode of $LogFile to which the restart page belongs
181 static BOOL ntfs_restart_area_is_valid(ntfs_inode *ni, RESTART_PAGE_HEADER *rp)
198 ntfs_error(ni->vol->mp, "$LogFile restart area specifies "
212 ntfs_error(ni->vol->mp, "$LogFile restart area specifies "
227 ntfs_error(ni->vol->mp, "$LogFile restart area is out of "
244 ntfs_error(ni->vol->mp, "$LogFile restart area specifies "
259 ntfs_error(ni->vol->mp, "$LogFile restart area specifies "
266 ntfs_error(ni->vol->mp, "$LogFile restart area specifies "
273 ntfs_error(ni->vol->mp, "$LogFile restart area specifies "
283 * @ni: ntfs inode of $LogFile to which the restart page belongs
296 static BOOL ntfs_log_client_array_is_consistent(ntfs_inode *ni,
342 ntfs_error(ni->vol->mp, "$LogFile log client array is corrupt.");
348 * @ni: ntfs inode of $LogFile to which the restart page belongs
350 * @pos: position in @ni at which the restart page resides
373 static errno_t ntfs_restart_page_load(ntfs_inode *ni, RESTART_PAGE_HEADER *rp,
383 if (!ntfs_restart_page_header_is_valid(ni, rp, pos)) {
388 if (!ntfs_restart_area_is_valid(ni, rp)) {
399 ntfs_error(ni->vol->mp, "Failed to allocate memory for "
427 err = ntfs_page_map(ni, pos, &upl, &pl, &kaddr, FALSE);
429 ntfs_error(ni->vol->mp, "Error reading "
439 ntfs_page_unmap(ni, upl, pl, FALSE);
459 ntfs_error(ni->vol->mp, "Multi sector transfer error "
473 if (!ntfs_log_client_array_is_consistent(ni, trp)) {
497 * @ni: ntfs inode of loaded $LogFile journal to check
515 errno_t ntfs_logfile_check(ntfs_inode *ni, RESTART_PAGE_HEADER **rp)
530 vol = ni->vol;
541 err = vnode_get(ni->vn);
548 lck_rw_lock_shared(&ni->lock);
549 lck_spin_lock(&ni->size_lock);
550 size = ni->data_size;
551 lck_spin_unlock(&ni->size_lock);
576 lck_rw_unlock_shared(&ni->lock);
577 (void)vnode_put(ni->vn);
593 ntfs_page_unmap(ni, upl, pl, FALSE);
595 err = ntfs_page_map(ni, pos, &upl, &pl, &paddr, FALSE);
646 err = ntfs_restart_page_load(ni,
671 ntfs_page_unmap(ni, upl, pl, FALSE);
679 ntfs_page_unmap(ni, upl, pl, FALSE);
680 lck_rw_unlock_shared(&ni->lock);
681 (void)vnode_put(ni->vn);
727 lck_rw_unlock_shared(&ni->lock);
728 (void)vnode_put(ni->vn);
737 * @ni: ntfs inode of loaded $LogFile journal to check
755 BOOL ntfs_logfile_is_clean(ntfs_inode *ni, const RESTART_PAGE_HEADER *rp)
757 ntfs_volume *vol = ni->vol;
794 * @ni: ntfs inode of loaded $LogFile journal to empty
796 * Empty the contents of the $LogFile journal @ni.
804 errno_t ntfs_logfile_empty(ntfs_inode *ni)
806 ntfs_volume *vol = ni->vol;
813 err = vnode_get(ni->vn);
819 lck_rw_lock_shared(&ni->lock);
820 lck_spin_lock(&ni->size_lock);
821 data_size = ni->data_size;
822 lck_spin_unlock(&ni->size_lock);
823 err = ntfs_attr_set(ni, 0, data_size, 0xff);
824 lck_rw_unlock_shared(&ni->lock);
825 (void)vnode_put(ni->vn);