Mirror von
https://github.com/tkuschel/bees.git
synchronisiert 2026-06-19 15:07:54 +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);
|
int ioctl_iflags_get(int fd);
|
||||||
|
void ioctl_iflags_set(int fd, int attr);
|
||||||
|
|
||||||
string st_mode_ntoa(mode_t mode);
|
string st_mode_ntoa(mode_t mode);
|
||||||
|
|
||||||
|
|||||||
@@ -496,6 +496,12 @@ namespace crucible {
|
|||||||
return attr;
|
return attr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ioctl_iflags_set(int fd, int attr)
|
||||||
|
{
|
||||||
|
DIE_IF_MINUS_ONE(ioctl(fd, FS_IOC_SETFLAGS, &attr));
|
||||||
|
}
|
||||||
|
|
||||||
string
|
string
|
||||||
readlink_or_die(const string &path)
|
readlink_or_die(const string &path)
|
||||||
{
|
{
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren