Lines Matching refs:newdir
1875 // Verify that the 'newdir' inode is not a subdirectory of the source.
1876 zx_status_t VnodeMinfs::CheckNotSubdirectory(fbl::RefPtr<VnodeMinfs> newdir) {
1877 fbl::RefPtr<VnodeMinfs> vn = newdir;
1904 auto newdir = fbl::RefPtr<VnodeMinfs>::Downcast(_newdir);
1909 if (!(IsDirectory() && newdir->IsDirectory())) {
1922 } else if ((status = oldvn->CheckNotSubdirectory(newdir)) < 0) {
1929 } else if ((newdir->ino_ == ino_) && (oldname == newname)) {
1941 status = newdir->ForEachDirent(&args, DirentCallbackFindSpace);
1950 // Reserve potential blocks to add a new direntry to newdir.
1952 if ((status = GetRequiredBlockCount(newdir->GetInode()->size, args.reclen, &reserved_blocks))
1967 status = newdir->ForEachDirent(&args, DirentCallbackAttemptRename);
1971 if ((status = newdir->AppendDirent(&args)) != ZX_OK) {
1980 if ((args.type == kMinfsTypeDir) && (ino_ != newdir->ino_)) {
1982 if ((status = newdir->Lookup(&vn_fs, newname)) < 0) {
1987 args.ino = newdir->ino_;
2003 state->GetWork()->PinVnode(newdir);