diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-04-08 20:47:35 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-04-08 20:47:35 +0200 |
commit | 1ed8f8c16da99551c6731764759878a0bc243fde (patch) | |
tree | e374c9701d1f6217e77b056b52401c02d59755eb /src/import/import-raw.c | |
parent | 171181bcd64d5a128f6678107d18ffa1c9388b94 (diff) |
util: merge change_attr_fd() and chattr_fd()
Diffstat (limited to 'src/import/import-raw.c')
-rw-r--r-- | src/import/import-raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/import/import-raw.c b/src/import/import-raw.c index ad8f806aff..97e1254f09 100644 --- a/src/import/import-raw.c +++ b/src/import/import-raw.c @@ -188,7 +188,7 @@ static int raw_import_maybe_convert_qcow2(RawImport *i) { if (converted_fd < 0) return log_error_errno(errno, "Failed to create %s: %m", t); - r = chattr_fd(converted_fd, true, FS_NOCOW_FL); + r = chattr_fd(converted_fd, FS_NOCOW_FL, FS_NOCOW_FL); if (r < 0) log_warning_errno(errno, "Failed to set file attributes on %s: %m", t); @@ -277,7 +277,7 @@ static int raw_import_open_disk(RawImport *i) { if (i->output_fd < 0) return log_error_errno(errno, "Failed to open destination %s: %m", i->temp_path); - r = chattr_fd(i->output_fd, true, FS_NOCOW_FL); + r = chattr_fd(i->output_fd, FS_NOCOW_FL, FS_NOCOW_FL); if (r < 0) log_warning_errno(errno, "Failed to set file attributes on %s: %m", i->temp_path); |