Lines Matching refs:root
1380 // special case for root
1449 // default to root dir
1451 dir->tail[0] = lfs->root[0];
1452 dir->tail[1] = lfs->root[1];
1460 // skip '.' and root '..'
1853 // update root if needed
1854 if (lfs_pair_cmp(dir->pair, lfs->root) == 0 && split == 0) {
1855 lfs->root[0] = tail.pair[0];
1856 lfs->root[1] = tail.pair[1];
1913 // v1 superblock if we relocate root, and invalidating directory
2421 // update internal root
2422 if (lfs_pair_cmp(lpair, lfs->root) == 0) {
2423 lfs->root[0] = ldir.pair[0];
2424 lfs->root[1] = ldir.pair[1];
2675 // handle root dir separately
2676 pair[0] = lfs->root[0];
2677 pair[1] = lfs->root[1];
2771 dir->id = (off > 0 && lfs_pair_cmp(dir->head, lfs->root) == 0);
4043 // special case for root
4045 int err = lfs_dir_fetch(lfs, &cwd, lfs->root);
4077 // special case for root
4079 int err = lfs_dir_fetch(lfs, &cwd, lfs->root);
4219 lfs->root[0] = LFS_BLOCK_NULL;
4220 lfs->root[1] = LFS_BLOCK_NULL;
4275 // create root dir
4276 lfs_mdir_t root;
4277 err = lfs_dir_alloc(lfs, &root);
4293 err = lfs_dir_commit(lfs, &root, LFS_MKATTRS(
4304 root.erased = false;
4305 err = lfs_dir_commit(lfs, &root, NULL, 0);
4311 err = lfs_dir_fetch(lfs, &root, (const lfs_block_t[2]){0, 1});
4364 // update root
4365 lfs->root[0] = dir.pair[0];
4366 lfs->root[1] = dir.pair[1];
4507 int err = lfs_dir_fetch(lfs, &dir, lfs->root);
4551 dir.tail[0] = lfs->root[0];
4552 dir.tail[1] = lfs->root[1];
4781 lfs->root[0],
4782 lfs->root[1]);
4784 lfs_mdir_t root;
4785 int err = lfs_dir_fetch(lfs, &root, lfs->root);
4801 err = lfs_dir_commit(lfs, &root, LFS_MKATTRS(
5015 lfs_mdir_t root;
5016 err = lfs_dir_fetch(lfs, &root, lfs->root);
5021 err = lfs_dir_commit(lfs, &root, NULL, 0);
5056 // fetch the root
5057 lfs_mdir_t root;
5058 int err = lfs_dir_fetch(lfs, &root, lfs->root);
5065 lfs_stag_t tag = lfs_dir_get(lfs, &root, LFS_MKTAG(0x7ff, 0x3ff, 0),
5076 err = lfs_dir_commit(lfs, &root, LFS_MKATTRS(
5117 lfs_block_t root[2];
5161 lfs_block_t root[2];
5225 d->root[0] = lfs_fromle32(d->root[0]);
5226 d->root[1] = lfs_fromle32(d->root[1]);
5331 if (lfs_pair_isnull(lfs->lfs1->root)) {
5400 if (lfs_pair_isnull(lfs->lfs1->root)) {
5450 lfs->lfs1->root[0] = LFS_BLOCK_NULL;
5451 lfs->lfs1->root[1] = LFS_BLOCK_NULL;
5475 lfs->lfs1->root[0] = superblock.d.root[0];
5476 lfs->lfs1->root[1] = superblock.d.root[1];
5524 dir1.d.tail[0] = lfs->lfs1->root[0];
5525 dir1.d.tail[1] = lfs->lfs1->root[1];
5533 // create new dir and bind as temporary pretend root
5542 lfs->root[0] = dir2.pair[0];
5543 lfs->root[1] = dir2.pair[1];
5589 err = lfs_dir_fetch(lfs, &dir2, lfs->root);
5620 err = lfs_dir_fetch(lfs, &dir2, lfs->root);
5645 lfs->root[0], lfs->root[1], dir1.head[0], dir1.head[1]);
5652 err = lfs_dir_fetch(lfs, &dir2, lfs->root);
5692 dir2.tail[0] = lfs->lfs1->root[0];
5693 dir2.tail[1] = lfs->lfs1->root[1];