linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fast symlinks stored slow
@ 2017-07-12 17:07 Richard W.M. Jones
  2017-07-12 20:52 ` Richard W.M. Jones
  2017-07-12 23:17 ` Theodore Ts'o
  0 siblings, 2 replies; 9+ messages in thread
From: Richard W.M. Jones @ 2017-07-12 17:07 UTC (permalink / raw)
  To: linux-ext4; +Cc: Tahsin Erdogan


https://bugzilla.redhat.com/show_bug.cgi?id=1470157

To cut a long story short, we were using libext2fs to create
filesystems where short symlinks (< 60 bytes) were stored the same way
as long symlinks, ie. stored as an ordinary file instead of being
stored in the inode.

This actually worked fine until very recently when this change was
made to the upstream kernel:

  commit 407cd7fb83c0ebabb490190e673d8c71ee7df97e
  Author: Tahsin Erdogan <tahsin@google.com>
   Date:   Tue Jul 4 00:11:21 2017 -0400

    ext4: change fast symlink test to not rely on i_blocks

which broke these filesystems.

I think the reason we were creating filesystems wrongly in the first
place is because our code has been around since about 2008, and the
nice ext2fs_symlink function that deals properly with fast/slow
symlinks wasn't added until 2013.

It's not too much trouble for us to recreate the incorrect
filesystems.  Mostly we're creating one-off throwaway filesystems for
appliances anyway and they don't live for long.

But I suppose this might be a warning that other incorrect filesystems
exist which will break with Linux >= 4.13.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-07-13 20:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-12 17:07 Fast symlinks stored slow Richard W.M. Jones
2017-07-12 20:52 ` Richard W.M. Jones
2017-07-12 21:36   ` Tahsin Erdogan
2017-07-12 23:17 ` Theodore Ts'o
2017-07-13  8:02   ` Richard W.M. Jones
2017-07-13 16:49     ` Theodore Ts'o
2017-07-13 17:13       ` Richard W.M. Jones
2017-07-13 18:50         ` Theodore Ts'o
2017-07-13 20:27           ` Richard W.M. Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).