Changeset View
Changeset View
Standalone View
Standalone View
head/sbin/fsck_ffs/suj.c
Show First 20 Lines • Show All 1,341 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
ino_adjust(struct suj_ino *sino) | ino_adjust(struct suj_ino *sino) | ||||
{ | { | ||||
struct jrefrec *rrec; | struct jrefrec *rrec; | ||||
struct suj_rec *srec; | struct suj_rec *srec; | ||||
struct suj_ino *stmp; | struct suj_ino *stmp; | ||||
union dinode *ip; | union dinode *ip; | ||||
nlink_t nlink; | nlink_t nlink; | ||||
nlink_t reqlink; | |||||
int recmode; | int recmode; | ||||
int reqlink; | |||||
int isdot; | int isdot; | ||||
int mode; | int mode; | ||||
ino_t ino; | ino_t ino; | ||||
nlink = sino->si_nlink; | nlink = sino->si_nlink; | ||||
ino = sino->si_ino; | ino = sino->si_ino; | ||||
mode = sino->si_mode & IFMT; | mode = sino->si_mode & IFMT; | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | |||||
* link count is correct or needs adjusting. | * link count is correct or needs adjusting. | ||||
*/ | */ | ||||
static void | static void | ||||
ino_check(struct suj_ino *sino) | ino_check(struct suj_ino *sino) | ||||
{ | { | ||||
struct suj_rec *srec; | struct suj_rec *srec; | ||||
struct jrefrec *rrec; | struct jrefrec *rrec; | ||||
nlink_t dotlinks; | nlink_t dotlinks; | ||||
int newlinks; | nlink_t newlinks; | ||||
int removes; | nlink_t removes; | ||||
int nlink; | nlink_t nlink; | ||||
ino_t ino; | ino_t ino; | ||||
int isdot; | int isdot; | ||||
int isat; | int isat; | ||||
int mode; | int mode; | ||||
if (sino->si_hasrecs == 0) | if (sino->si_hasrecs == 0) | ||||
return; | return; | ||||
ino = sino->si_ino; | ino = sino->si_ino; | ||||
▲ Show 20 Lines • Show All 1,154 Lines • Show Last 20 Lines |