Home
last modified time | relevance | path

Searched refs:nlink (Results 1 – 25 of 96) sorted by relevance

1234

/netbsd-src/tests/usr.sbin/mtree/
H A Dnetbsd6_d_create.out7 /set type=file nlink=1
8 . type=dir nlink=4
18 a type=dir nlink=4
24 nlink=2 size=18 \
28 1 type=dir nlink=2
36 2 type=dir nlink=2
45 b type=dir nlink=2
46 b.file.1 nlink=2 size=18 \
48 b.file.2 nlink=2 size=18 \
51 nlink=2 size=18 \
H A Dmtree_d_create.out7 /set type=file nlink=1
8 . type=dir nlink=4
18 a type=dir nlink=4
24 nlink=2 size=18 \
28 1 type=dir nlink=2
36 2 type=dir nlink=2
45 b type=dir nlink=2
46 b.file.1 nlink=2 size=18 \
48 b.file.2 nlink=2 size=18 \
51 nlink=2 size=18 \
/netbsd-src/share/examples/puffs/pgfs/
H A Dcheck.sql39 WHERE f.nlink = 0;
82 coalesce(fp.nlink, 0) + coalesce(fc.nlink, 0) +
87 AS nlink
90 SELECT child_fileid AS fileid, count(*) AS nlink
96 SELECT count(*) AS nlink, d.parent_fileid AS fileid
107 WHERE (d.nlink IS NULL AND (f.fileid <> 1 AND f.nlink <> 0))
108 OR f.nlink IS NULL
109 OR d.nlink <> f.nlink;
H A Dnewfs.sql46 CREATE DOMAIN nlink AS int8 NOT NULL CHECK(VALUE >= 0); domain
64 nlink nlink, field
93 INSERT INTO file (fileid, type, mode, uid, gid, nlink, rev,
H A Dpgfs_subs.c452 long long nlink; in getattr() local
499 error = FETCHNEXT(&s, types, &type, &mode, &uid, &gid, &nlink, in getattr()
524 error = FETCHNEXT(&s, types, &type, &mode, &uid, &gid, &nlink, in getattr()
537 if (nlink > 0 && va->va_type == VDIR) { in getattr()
538 nlink++; /* "." */ in getattr()
540 va->va_nlink = nlink; in getattr()
H A Dfix.sql36 files_to_remove AS (DELETE FROM file WHERE nlink IN (SELECT * FROM pgfs_clients)
/netbsd-src/sbin/fsck_ffs/
H A Ddir.c448 int16_t nlink; in adjust() local
452 nlink = iswap16(DIP(dp, nlink)); in adjust()
453 if (nlink == lcnt) { in adjust()
488 nlink, nlink - lcnt); in adjust()
498 DIP_SET(dp, nlink, iswap16(nlink - lcnt)); in adjust()
566 int16_t nlink; in linkup() local
572 nlink = iswap16(DIP(dp, nlink)); in linkup()
672 nlink = DIP(dp, nlink); in linkup()
673 DIP_SET(dp, nlink, iswap16(iswap16(nlink) + 1)); in linkup()
881 DIP_SET(dp, nlink, iswap16(2)); in allocdir()
[all …]
/netbsd-src/sys/fs/v7fs/
H A Dv7fs_file.c169 inode.nlink = 1; in v7fs_file_allocate()
180 inode.nlink = 1; in v7fs_file_allocate()
183 inode.nlink = 2; /* . + .. */ in v7fs_file_allocate()
256 inode.nlink = 0; /* remove this. */ in v7fs_file_deallocate()
259 --inode.nlink; /* regular file. */ in v7fs_file_deallocate()
260 DPRINTF("%.*s nlink=%d\n", (int)namelen, name, inode.nlink); in v7fs_file_deallocate()
319 parent_dir->nlink++; in v7fs_directory_add_entry()
373 parent_dir->nlink--; in v7fs_directory_remove_entry()
H A Dv7fs_inode.h40 int16_t nlink; member
57 #define v7fs_inode_nlink(i) ((i)->nlink)
H A Dv7fs_inode.c171 conv16(nlink); in v7fs_inode_setup_memory_image()
202 conv16(nlink); in v7fs_inode_setup_disk_image()
/netbsd-src/sys/ufs/chfs/
H A Dchfs_build.c89 if (child_vc->nlink < 1) in chfs_build_set_vnodecache_nlink()
90 child_vc->nlink = 1; in chfs_build_set_vnodecache_nlink()
101 child_vc->nlink++; in chfs_build_set_vnodecache_nlink()
102 vc->nlink++; in chfs_build_set_vnodecache_nlink()
166 child_vc->nlink--; in chfs_build_remove_unlinked_vnode()
168 if (!child_vc->nlink) { in chfs_build_remove_unlinked_vnode()
311 if (vc->nlink) { in chfs_build_filesystem()
H A Dchfs_write.c432 ip->chvc->nlink++; in chfs_do_link()
433 parent->chvc->nlink++; in chfs_do_link()
490 if (fd->type == CHT_DIR && ip->chvc->nlink == 2) in chfs_do_unlink()
491 ip->chvc->nlink = 0; in chfs_do_unlink()
493 ip->chvc->nlink--; in chfs_do_unlink()
533 parent->chvc->nlink--; in chfs_do_unlink()
H A Dchfs_gc.c313 int deleted = (chvc && !(chvc->pvno | chvc->nlink)); in chfs_clear_inode()
429 uint32_t nlink; in chfs_gcollect_pass() local
468 if ((vc->pvno | vc->nlink) == 0) { in chfs_gcollect_pass()
631 nlink = vc->nlink; in chfs_gcollect_pass()
634 ip = chfs_gc_fetch_inode(chmp, vno, !(pvno | nlink)); in chfs_gcollect_pass()
H A Dchfs_vnode.c225 chvc->nlink = 1; in chfs_makeinode()
227 chvc->nlink = 2; in chfs_makeinode()
307 pdir->chvc->nlink++; in chfs_makeinode()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cc78 int nlink; member
224 if (mtx1->nlink == kMaxLink) { in MutexBeforeLock()
229 for (; li < mtx1->nlink; li++) { in MutexBeforeLock()
244 if (li == mtx1->nlink) { in MutexBeforeLock()
246 Link *link = &mtx1->link[mtx1->nlink++]; in MutexBeforeLock()
258 if (!added || mtx->nlink == 0) { in MutexBeforeLock()
347 mtx->nlink = 0; in MutexDestroy()
365 for (int li = 0; li < mtx->nlink; li++) in CycleCheck()
381 if (mtx1->nlink == 0) in CycleCheck()
387 for (int li = 0; li < mtx1->nlink; li++) { in CycleCheck()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cpp79 int nlink; member
223 if (mtx1->nlink == kMaxLink) { in MutexBeforeLock()
228 for (; li < mtx1->nlink; li++) { in MutexBeforeLock()
243 if (li == mtx1->nlink) { in MutexBeforeLock()
245 Link *link = &mtx1->link[mtx1->nlink++]; in MutexBeforeLock()
257 if (!added || mtx->nlink == 0) { in MutexBeforeLock()
346 mtx->nlink = 0; in MutexDestroy()
364 for (int li = 0; li < mtx->nlink; li++) in CycleCheck()
380 if (mtx1->nlink == 0) in CycleCheck()
386 for (int li = 0; li < mtx1->nlink; li++) { in CycleCheck()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cc80 int nlink; member
226 if (mtx1->nlink == kMaxLink) { in MutexBeforeLock()
231 for (; li < mtx1->nlink; li++) { in MutexBeforeLock()
246 if (li == mtx1->nlink) { in MutexBeforeLock()
248 Link *link = &mtx1->link[mtx1->nlink++]; in MutexBeforeLock()
260 if (!added || mtx->nlink == 0) { in MutexBeforeLock()
349 mtx->nlink = 0; in MutexDestroy()
367 for (int li = 0; li < mtx->nlink; li++) in CycleCheck()
383 if (mtx1->nlink == 0) in CycleCheck()
389 for (int li = 0; li < mtx1->nlink; li++) { in CycleCheck()
/netbsd-src/sbin/fsdb/
H A Dfsdb.c484 int16_t nlink; in CMDFUNC() local
488 nlink = iswap16(DIP(curinode, nlink)); in CMDFUNC()
489 nlink++; in CMDFUNC()
490 DIP_SET(curinode, nlink, iswap16(nlink)); in CMDFUNC()
492 nlink); in CMDFUNC()
499 int16_t nlink; in CMDFUNC() local
503 nlink = iswap16(DIP(curinode, nlink)); in CMDFUNC()
504 nlink--; in CMDFUNC()
505 DIP_SET(curinode, nlink, iswap16(nlink)); in CMDFUNC()
507 nlink); in CMDFUNC()
[all …]
/netbsd-src/external/gpl2/mkhybrid/dist/
H A DTODO2 1) Finish multiple paths. Update nlink count on directories if it is
3 different than what stat returned. Save the nlink count that we store in
/netbsd-src/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_write_format_mtree_classic_indent.c33 int nlink; member
131 archive_entry_set_nlink(ae, entries[i].nlink); in test_write_format_mtree_sub()
132 assertEqualInt(entries[i].nlink, archive_entry_nlink(ae)); in test_write_format_mtree_sub()
H A Dtest_write_format_mtree_classic.c33 int nlink; member
129 archive_entry_set_nlink(ae, entries[i].nlink); in test_write_format_mtree_sub()
130 assertEqualInt(entries[i].nlink, archive_entry_nlink(ae)); in test_write_format_mtree_sub()
/netbsd-src/sbin/fsck_v7fs/
H A Dpathname.c252 if ((error = (cnt != p->nlink))) { in pathname_check_dir()
254 " dir:%d(inode) != %d(cnt)", ino, p->nlink, cnt); in pathname_check_dir()
259 p->nlink = cnt; in pathname_check_dir()
/netbsd-src/sys/ufs/ufs/
H A Dufs_rename.c349 DIP_ASSIGN(VTOI(fvp), nlink, VTOI(fvp)->i_nlink); in ufs_gro_rename()
376 DIP_ASSIGN(VTOI(tdvp), nlink, VTOI(tdvp)->i_nlink); in ufs_gro_rename()
386 DIP_ASSIGN(VTOI(tdvp), nlink, in ufs_gro_rename()
407 DIP_ASSIGN(VTOI(tdvp), nlink, in ufs_gro_rename()
447 DIP_ASSIGN(VTOI(tdvp), nlink, VTOI(tdvp)->i_nlink); in ufs_gro_rename()
471 DIP_ASSIGN(VTOI(tvp), nlink, 0); in ufs_gro_rename()
542 DIP_ASSIGN(VTOI(fvp), nlink, VTOI(fvp)->i_nlink); in ufs_gro_rename()
/netbsd-src/sys/ufs/lfs/
H A Dlfs_rename.c797 DIP_ASSIGN(VTOI(fvp), nlink, VTOI(fvp)->i_nlink); in ulfs_gro_rename()
824 DIP_ASSIGN(VTOI(tdvp), nlink, VTOI(tdvp)->i_nlink); in ulfs_gro_rename()
834 DIP_ASSIGN(VTOI(tdvp), nlink, in ulfs_gro_rename()
854 DIP_ASSIGN(VTOI(tdvp), nlink, in ulfs_gro_rename()
894 DIP_ASSIGN(VTOI(tdvp), nlink, VTOI(tdvp)->i_nlink); in ulfs_gro_rename()
917 DIP_ASSIGN(VTOI(tvp), nlink, 0); in ulfs_gro_rename()
998 DIP_ASSIGN(VTOI(fvp), nlink, VTOI(fvp)->i_nlink); in ulfs_gro_rename()
/netbsd-src/usr.sbin/makefs/
H A Dwalk.c324 cur->inode->nlink++; in create_fsnode()
365 cur->inode->nlink = 1; in free_fsnodes()
422 if (cur->inode->nlink-- == 1) in apply_specfile()
728 if (cur->inode->nlink > 1) in link_check()
729 printf(", nlinks=%d", cur->inode->nlink); in link_check()

1234