mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-10 05:18:30 +03:00
libglnx porting: Drop uses of gs_file_openat_noatime
We're not really doing the "noatime" thing anymore. Closes: #341 Approved by: jlebon
This commit is contained in:
parent
90b9a06277
commit
f6ce04e480
@ -2837,9 +2837,12 @@ ostree_repo_load_file (OstreeRepo *self,
|
|||||||
*/
|
*/
|
||||||
if (S_ISLNK (mode) || out_input)
|
if (S_ISLNK (mode) || out_input)
|
||||||
{
|
{
|
||||||
if (!gs_file_openat_noatime (self->objects_dir_fd, loose_path_buf, &fd,
|
fd = openat (self->objects_dir_fd, loose_path_buf, O_RDONLY | O_CLOEXEC);
|
||||||
cancellable, error))
|
if (fd < 0)
|
||||||
goto out;
|
{
|
||||||
|
glnx_set_error_from_errno (error);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (S_ISREG (mode) && out_input)
|
if (S_ISREG (mode) && out_input)
|
||||||
@ -2876,9 +2879,12 @@ ostree_repo_load_file (OstreeRepo *self,
|
|||||||
{
|
{
|
||||||
glnx_fd_close int fd = -1;
|
glnx_fd_close int fd = -1;
|
||||||
|
|
||||||
if (!gs_file_openat_noatime (self->objects_dir_fd, loose_path_buf, &fd,
|
fd = openat (self->objects_dir_fd, loose_path_buf, O_RDONLY | O_CLOEXEC);
|
||||||
cancellable, error))
|
if (fd < 0)
|
||||||
goto out;
|
{
|
||||||
|
glnx_set_error_from_errno (error);
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (out_xattrs)
|
if (out_xattrs)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user