Re: [PATCH 3/3] fstrim -a/-A: Skip read-only volumes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dne 11. 06. 19 v 10:15 Karel Zak napsal(a):
> On Mon, Jun 10, 2019 at 09:59:45PM +0200, Stanislav Brabec wrote:
>> Calling TRIM on some read-only volumes can fail with:
>> fstrim: /win: FITRIM ioctl failed: Bad file descriptor
> Did you try it with the current version from git? ... because we
> interpret EBADF as "the discard operation is not supported" warning
> rather than an error.

No. The bug was reported by one of users on a read-only /windows, and I
was not able to reproduce it. The patch was done as my best guess.

https://bugzilla.opensuse.org/show_bug.cgi?id=1106214

Reported for openSUSE Leap 15.0, i. e. util-linux-2.31.1.

I tried the same, but I found a possible bug in the ntfs:

mount -r /dev/nvme0n1p3 /windows
fuse: mount failed: Device or resource busy


-- 
Best Regards / S pozdravem,

Stanislav Brabec
software developer
---------------------------------------------------------------------
SUSE LINUX, s. r. o.                         e-mail: sbrabec@xxxxxxxx
Křižíkova 148/34 (Corso IIa)                    tel: +420 284 084 060
186 00 Praha 8-Karlín                          fax:  +420 284 084 001
Czech Republic                                    http://www.suse.cz/
PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76





[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux