summaryrefslogtreecommitdiff
path: root/src/shared/machine-image.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-03-13 14:08:00 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-03-13 14:10:39 +0100
commit15411c0cb1192799b37ec8f25d6f30e8d7292fc6 (patch)
tree003adfa8f694890078b5fb6d901e420c9a966ece /src/shared/machine-image.c
parent32a568fb90bf0a22a3007fa670305403a5d0bb72 (diff)
tree-wide: there is no ENOTSUP on linux
Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses.
Diffstat (limited to 'src/shared/machine-image.c')
-rw-r--r--src/shared/machine-image.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c
index 00337e7c9f..edf986d4db 100644
--- a/src/shared/machine-image.c
+++ b/src/shared/machine-image.c
@@ -369,7 +369,7 @@ int image_remove(Image *i) {
return rm_rf_dangerous(i->path, false, true, false);
default:
- return -ENOTSUP;
+ return -EOPNOTSUPP;
}
}
@@ -430,7 +430,7 @@ int image_rename(Image *i, const char *new_name) {
}
default:
- return -ENOTSUP;
+ return -EOPNOTSUPP;
}
if (!new_path)
@@ -498,7 +498,7 @@ int image_clone(Image *i, const char *new_name, bool read_only) {
break;
default:
- return -ENOTSUP;
+ return -EOPNOTSUPP;
}
if (r < 0)
@@ -563,7 +563,7 @@ int image_read_only(Image *i, bool b) {
}
default:
- return -ENOTSUP;
+ return -EOPNOTSUPP;
}
return 0;
@@ -622,7 +622,7 @@ int image_set_limit(Image *i, uint64_t referenced_max) {
return -EROFS;
if (i->type != IMAGE_SUBVOLUME)
- return -ENOTSUP;
+ return -EOPNOTSUPP;
return btrfs_quota_limit(i->path, referenced_max);
}