Mirror von
https://github.com/tkuschel/bees.git
synchronisiert 2026-05-08 04:59:37 +02:00
crucible: add ioctl_iflags_set to complement ioctl_iflags_get
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
@@ -146,6 +146,7 @@ namespace crucible {
|
||||
};
|
||||
|
||||
int ioctl_iflags_get(int fd);
|
||||
void ioctl_iflags_set(int fd, int attr);
|
||||
|
||||
string st_mode_ntoa(mode_t mode);
|
||||
|
||||
|
||||
@@ -496,6 +496,12 @@ namespace crucible {
|
||||
return attr;
|
||||
}
|
||||
|
||||
void
|
||||
ioctl_iflags_set(int fd, int attr)
|
||||
{
|
||||
DIE_IF_MINUS_ONE(ioctl(fd, FS_IOC_SETFLAGS, &attr));
|
||||
}
|
||||
|
||||
string
|
||||
readlink_or_die(const string &path)
|
||||
{
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren