📄 sdext_symlink_repair.c
字号:
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by reiser4progs/COPYING. sdext_symlink.c -- symlink stat data extension plugin. */#include <reiser4/plugin.h>#include <repair/plugin.h>#ifndef ENABLE_MINIMAL#ifdef ENABLE_SYMLINKSextern reiser4_core_t *sdext_symlink_core;errno_t sdext_symlink_check_struct(stat_entity_t *stat, repair_hint_t *hint) { uint32_t offset; aal_assert("vpf-779", stat != NULL); aal_assert("vpf-780", stat->plug != NULL); offset = stat->offset; while (*((char *)(stat->place->body) + offset)) { offset++; } if (offset >= stat->place->len) { fsck_mess("Node (%llu), item (%u), [%s]: does not look " "like a valid (%s) statdata extension.", place_blknr(stat->place), stat->place->pos.item, print_key(sdext_symlink_core, &stat->place->key), stat->plug->p.label); return RE_FATAL; } return 0;}void sdext_symlink_print(stat_entity_t *stat, aal_stream_t *stream, uint16_t options) { aal_assert("umka-1485", stat != NULL); aal_assert("umka-1486", stream != NULL); aal_stream_format(stream, "len:\t\t%u\n", aal_strlen((char *)stat_body(stat))); aal_stream_format(stream, "data:\t\t\"%s\"\n", (char *)stat_body(stat));}#endif#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -