diff options
author | Sami Kerola | 2016-12-18 19:32:40 +0100 |
---|---|---|
committer | Karel Zak | 2016-12-22 12:18:45 +0100 |
commit | 6690ceed64841dc72aa3f904e9c437f36730b5bc (patch) | |
tree | 65e69c3b706aa64d2c2e58fa8dabf4797def60dc /sys-utils/fsfreeze.c | |
parent | tests: add findmnt output tests (diff) | |
download | kernel-qcow2-util-linux-6690ceed64841dc72aa3f904e9c437f36730b5bc.tar.gz kernel-qcow2-util-linux-6690ceed64841dc72aa3f904e9c437f36730b5bc.tar.xz kernel-qcow2-util-linux-6690ceed64841dc72aa3f904e9c437f36730b5bc.zip |
fsfreeze: remove unnecessary functions
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/fsfreeze.c')
-rw-r--r-- | sys-utils/fsfreeze.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c index 727319a66..a25eaff20 100644 --- a/sys-utils/fsfreeze.c +++ b/sys-utils/fsfreeze.c @@ -33,16 +33,6 @@ enum fs_operation { UNFREEZE }; -static int freeze_f(int fd) -{ - return ioctl(fd, FIFREEZE, 0); -} - -static int unfreeze_f(int fd) -{ - return ioctl(fd, FITHAW, 0); -} - static void __attribute__((__noreturn__)) usage(FILE *out) { fprintf(out, USAGE_HEADER); @@ -138,13 +128,13 @@ int main(int argc, char **argv) switch (action) { case FREEZE: - if (freeze_f(fd)) { + if (ioctl(fd, FIFREEZE, 0)) { warn(_("%s: freeze failed"), path); goto done; } break; case UNFREEZE: - if (unfreeze_f(fd)) { + if (ioctl(fd, FITHAW, 0)) { warn(_("%s: unfreeze failed"), path); goto done; } |