diff options
author | Colin Walters <walters@verbum.org> | 2017-05-26 13:40:14 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-05-26 19:05:53 +0000 |
commit | ff2b881275f641bd934207d58ba14289a4190d0e (patch) | |
tree | 9e8fea82fcba1280a299495b4d1d282ab4d2a834 | |
parent | ad119aece9a6c9c547d6a8dbbac020d1c0e4fdad (diff) | |
download | ostree-ff2b881275f641bd934207d58ba14289a4190d0e.tar.gz |
lib/fsutil: Delete unused GFile ioctl method
All the deployment code uses fds.
Closes: #889
Approved by: jlebon
-rw-r--r-- | src/libostree/ostree-linuxfsutil.c | 32 | ||||
-rw-r--r-- | src/libostree/ostree-linuxfsutil.h | 6 |
2 files changed, 0 insertions, 38 deletions
diff --git a/src/libostree/ostree-linuxfsutil.c b/src/libostree/ostree-linuxfsutil.c index b270a94e..dd717118 100644 --- a/src/libostree/ostree-linuxfsutil.c +++ b/src/libostree/ostree-linuxfsutil.c @@ -99,35 +99,3 @@ _ostree_linuxfs_fd_alter_immutable_flag (int fd, out: return ret; } - -gboolean -_ostree_linuxfs_alter_immutable_flag (GFile *path, - gboolean new_immutable_state, - GCancellable *cancellable, - GError **error) -{ - gboolean ret = FALSE; - glnx_fd_close int fd = -1; - - if (g_cancellable_set_error_if_cancelled (cancellable, error)) - return FALSE; - - fd = open (gs_file_get_path_cached (path), O_RDONLY|O_NONBLOCK|O_LARGEFILE); - if (fd == -1) - { - int errsv = errno; - g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, - "open(%s): %s", - gs_file_get_path_cached (path), - g_strerror (errsv)); - goto out; - } - - if (!_ostree_linuxfs_fd_alter_immutable_flag (fd, new_immutable_state, - cancellable, error)) - goto out; - - ret = TRUE; - out: - return ret; -} diff --git a/src/libostree/ostree-linuxfsutil.h b/src/libostree/ostree-linuxfsutil.h index 9c74b8a9..84122a70 100644 --- a/src/libostree/ostree-linuxfsutil.h +++ b/src/libostree/ostree-linuxfsutil.h @@ -30,10 +30,4 @@ _ostree_linuxfs_fd_alter_immutable_flag (int fd, GCancellable *cancellable, GError **error); -gboolean -_ostree_linuxfs_alter_immutable_flag (GFile *path, - gboolean new_immutable_state, - GCancellable *cancellable, - GError **error); - G_END_DECLS |