aboutsummaryrefslogtreecommitdiff
path: root/sbin/fsdb
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 1c6f78302fce..c3553a687066 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -340,7 +340,7 @@ CMDFUNCSTART(zapi)
GETINUM(1,inum);
dp = ginode(inum);
clearinode(dp);
- inodirty();
+ inodirty(dp);
if (curinode) /* re-set after potential change */
curinode = ginode(curinum);
return 0;
@@ -370,7 +370,7 @@ CMDFUNCSTART(uplink)
DIP_SET(curinode, di_nlink, DIP(curinode, di_nlink) + 1);
printf("inode %ju link count now %d\n",
(uintmax_t)curinum, DIP(curinode, di_nlink));
- inodirty();
+ inodirty(curinode);
return 0;
}
@@ -381,7 +381,7 @@ CMDFUNCSTART(downlink)
DIP_SET(curinode, di_nlink, DIP(curinode, di_nlink) - 1);
printf("inode %ju link count now %d\n",
(uintmax_t)curinum, DIP(curinode, di_nlink));
- inodirty();
+ inodirty(curinode);
return 0;
}
@@ -919,7 +919,7 @@ CMDFUNCSTART(newtype)
}
DIP_SET(curinode, di_mode, DIP(curinode, di_mode) & ~IFMT);
DIP_SET(curinode, di_mode, DIP(curinode, di_mode) | type);
- inodirty();
+ inodirty(curinode);
printactive(0);
return 0;
}
@@ -940,7 +940,7 @@ CMDFUNCSTART(chlen)
}
DIP_SET(curinode, di_size, len);
- inodirty();
+ inodirty(curinode);
printactive(0);
return rval;
}
@@ -962,7 +962,7 @@ CMDFUNCSTART(chmode)
DIP_SET(curinode, di_mode, DIP(curinode, di_mode) & ~07777);
DIP_SET(curinode, di_mode, DIP(curinode, di_mode) | modebits);
- inodirty();
+ inodirty(curinode);
printactive(0);
return rval;
}
@@ -987,7 +987,7 @@ CMDFUNCSTART(chaflags)
return(1);
}
DIP_SET(curinode, di_flags, flags);
- inodirty();
+ inodirty(curinode);
printactive(0);
return rval;
}
@@ -1012,7 +1012,7 @@ CMDFUNCSTART(chgen)
return(1);
}
DIP_SET(curinode, di_gen, gen);
- inodirty();
+ inodirty(curinode);
printactive(0);
return rval;
}
@@ -1037,7 +1037,7 @@ CMDFUNCSTART(linkcount)
}
DIP_SET(curinode, di_nlink, lcnt);
- inodirty();
+ inodirty(curinode);
printactive(0);
return rval;
}
@@ -1064,7 +1064,7 @@ CMDFUNCSTART(chowner)
}
DIP_SET(curinode, di_uid, uid);
- inodirty();
+ inodirty(curinode);
printactive(0);
return rval;
}
@@ -1090,7 +1090,7 @@ CMDFUNCSTART(chgroup)
}
DIP_SET(curinode, di_gid, gid);
- inodirty();
+ inodirty(curinode);
printactive(0);
return rval;
}
@@ -1159,7 +1159,7 @@ CMDFUNCSTART(chbtime)
return 1;
curinode->dp2.di_birthtime = _time_to_time64(secs);
curinode->dp2.di_birthnsec = nsecs;
- inodirty();
+ inodirty(curinode);
printactive(0);
return 0;
}
@@ -1176,7 +1176,7 @@ CMDFUNCSTART(chmtime)
else
curinode->dp2.di_mtime = _time_to_time64(secs);
DIP_SET(curinode, di_mtimensec, nsecs);
- inodirty();
+ inodirty(curinode);
printactive(0);
return 0;
}
@@ -1193,7 +1193,7 @@ CMDFUNCSTART(chatime)
else
curinode->dp2.di_atime = _time_to_time64(secs);
DIP_SET(curinode, di_atimensec, nsecs);
- inodirty();
+ inodirty(curinode);
printactive(0);
return 0;
}
@@ -1210,7 +1210,7 @@ CMDFUNCSTART(chctime)
else
curinode->dp2.di_ctime = _time_to_time64(secs);
DIP_SET(curinode, di_ctimensec, nsecs);
- inodirty();
+ inodirty(curinode);
printactive(0);
return 0;
}