1
0
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:
Zygo Blaxell
2017-09-16 14:29:42 -04:00
Ursprung 088cbd24ff
Commit 5f18fcda52
2 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
+1
Datei anzeigen
@@ -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);
+6
Datei anzeigen
@@ -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)
{