http://bugzilla.opensuse.org/show_bug.cgi?id=975966
http://bugzilla.opensuse.org/show_bug.cgi?id=975966#c4
Stanislav Brabec changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags|needinfo?(sbrabec@suse.com) |
--- Comment #4 from Stanislav Brabec ---
Now it does not hang, just takes ~100 seconds to complete. I am not sure
whether it is an intended behavior. If yes, maybe rpm scripts should be
improved a bit to prevent long delays.
Tumbleweed with 4.10.1-1-default:
strace -r fstrim -a
...
0.000013 open("/var/log", O_RDONLY) = 4
0.000017 fstat(4, {st_mode=S_IFDIR|0755, st_size=886, ...}) = 0
0.000015 ioctl(4, FITRIM, {start=0, len=0xffffffffffffffff, minlen=0}) = 0
35.022382 close(4) = 0
0.000031 newfstatat(-1, "/home", {st_mode=S_IFDIR|0755, st_size=4096,
...}, AT_NO_AUTOMOUNT) = 0
0.000046 newfstatat(-1, "/", {st_mode=S_IFDIR|0755, st_size=404, ...},
AT_NO_AUTOMOUNT) = 0
0.000024 stat("/dev/sdb2", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 18),
...}) = 0
0.000021 open("/sys/dev/block/8:18", O_RDONLY|O_CLOEXEC) = 4
0.000041 newfstatat(4, "partition", {st_mode=S_IFREG|0444, st_size=4096,
...}, 0) = 0
0.000026 readlink("/sys/dev/block/8:18",
"../../devices/pci0000:00/0000:00"..., 4095) = 83
0.000023 open("/sys/block/sdb/dev", O_RDONLY|O_CLOEXEC) = 5
0.000029 fstat(5, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
0.000053 read(5, "8:16\n", 4096) = 5
0.000020 close(5) = 0
0.000017 close(4) = 0
0.000016 open("/sys/dev/block/8:18", O_RDONLY|O_CLOEXEC) = 4
0.000023 openat(4, "queue/discard_granularity", O_RDONLY|O_CLOEXEC) = -1
ENOENT (No such file or directory)
0.000025 openat(3, "queue/discard_granularity", O_RDONLY|O_CLOEXEC) = 5
0.000017 fcntl(5, F_GETFL) = 0x8000 (flags O_RDONLY|O_LARGEFILE)
0.000014 fstat(5, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
0.000012 read(5, "512\n", 4096) = 4
0.000015 close(5) = 0
0.000017 close(4) = 0
0.000015 open("/home", O_RDONLY) = 4
0.000017 fstat(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
0.000011 ioctl(4, FITRIM, {start=0, len=0xffffffffffffffff, minlen=0}) = 0
67.969971 close(4) = 0
0.000091 close(3) = 0
0.000052 close(1) = 0
0.000029 close(2) = 0
0.000022 exit_group(0) = ?
0.000141 +++ exited with 0 +++
--
You are receiving this mail because:
You are on the CC list for the bug.