Bug 1223565 - tar fails with "Cannot utime" on nfs mounts
Summary: tar fails with "Cannot utime" on nfs mounts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-20 21:40 UTC by Orion Poplawski
Modified: 2015-05-27 16:06 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-27 12:22:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2015-05-20 21:40:51 UTC
Description of problem:

+ /usr/bin/tar -xf -
+ /usr/bin/gzip -dc /home/orion/fedora/dmlite-plugins-memcache/dmlite-plugins-memcache-0.6.2.tar.gz
/usr/bin/tar: dmlite-plugins-memcache-0.6.2/src/MemcacheCatalog.cpp: Cannot utime
/usr/bin/tar: Exiting with failure status due to previous errors

Version-Release number of selected component (if applicable):
tar-1.28-4.fc23.x86_64
glibc-2.21.90-13.fc23.x86_64
kernel-4.1.0-0.rc4.git0.1.fc23.x86_64

How reproducible:
All the time, every tar file.  Under some debugging conditions it does appear to work okay.

strace shows fstat() failing for that file:

3773  openat(AT_FDCWD, "dmlite-plugins-memcache-0.6.2/src/MemcacheCatalog.cpp", O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY|O_NONBLOCK|O_CLOEXEC, 0664) = 7
3773  write(7, "/// @file    plugins/memcache/Me"..., 6144) = 6144
3773  read(3, "                  \"Symbolic link"..., 10240) = 10240
3773  write(7, "                  \"Symbolic link"..., 10240) = 10240
3773  read(3, "\n\n  if (checkPermissions(this->s"..., 10240) = 10240
3773  write(7, "\n\n  if (checkPermissions(this->s"..., 10240) = 10240
3773  read(3, "ut failures:\n  // if the call fa"..., 10240) = 10240
3773  write(7, "ut failures:\n  // if the call fa"..., 10213) = 10213
3773  fstat(7, {st_mode=S_IFREG|0644, st_size=788, ...}) = 9

I can't figure out why.  This is in an NFS mounted directory.  Appears to work fine on local or tmpfs filesystems.

Comment 1 J. Bruce Fields 2015-05-26 20:39:11 UTC
I'm just blindly googling,I  haven't really followed the problem, but is this possibly the same thing?: https://lkml.org/lkml/2015/5/15/406 (fix is upstream in -rc5 as 6b19687563fa "nfs: stat(2) fails during cthon04 basic test5 on NFSv4.0")

Comment 2 Josh Boyer 2015-05-27 12:22:42 UTC
(In reply to J. Bruce Fields from comment #1)
> I'm just blindly googling,I  haven't really followed the problem, but is
> this possibly the same thing?: https://lkml.org/lkml/2015/5/15/406 (fix is
> upstream in -rc5 as 6b19687563fa "nfs: stat(2) fails during cthon04 basic
> test5 on NFSv4.0")

I think you're likely correct.  Rawhide is already on -rc5, so this should be fixed.

Orion, if this isn't fixed with 4.1-rc5, please reopen.

Comment 3 Orion Poplawski 2015-05-27 16:06:56 UTC
Looks good with 4.1.0-0.rc5.git0.1.fc23.x86_64, thanks.


Note You need to log in before you can comment on or make changes to this bug.