inline_data option on ext4 truncates symlinks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Luis Henriques | ||
Trusty |
Fix Released
|
Undecided
|
Luis Henriques | ||
Utopic |
Fix Released
|
Medium
|
Luis Henriques |
Bug Description
To replicate the bug, create two filesystems, one with `mkfs.ext4 -I 256`, one with `mkfs.ext4 -I 256 -O inline_data`. An inode size of 256 bytes is the default, but included here for clarity. To do this, you are going to need an `e2fsprogs` from trunk, or version 1.43 if it has been released.
Mount the two filesystems, in each of them do:
$ ln -s $(for i in {1..64}; do echo -n .; done) 64
$ ln -s $(for i in {1..128}; do echo -n .; done) 128
$ ln -s $(for i in {1..192}; do echo -n .; done) 192
$ ls -l 64 128 192
Both directory listings will show symlinks named `64`, `128` and `256`, each pointing to a filename with the corresponding amount of dots. This is the expected behavior.
Unmount both filesystems, mount them again. Do the `ls -l` again.
The default filesystem will show the same output as previously, the one with inline_data activated will show the `128` symlink pointing to a filename of only 64 dots.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.13.0-32-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: GNOME
Date: Sun Jul 27 00:47:06 2014
EcryptfsInUse: Yes
MachineType: LENOVO IdeaPad Z370
ProcFB:
0 inteldrmfb
1 nouveaufb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.127.5
SourcePackage: linux
StagingDrivers: rts5139
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/29/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 4ACN35WW
dmi.board.name: KL5
dmi.board.vendor: LENOVO
dmi.board.version: Rev 1.0
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: IdeaPad Z370
dmi.product.
dmi.sys.vendor: LENOVO
description: | updated |
Changed in linux (Ubuntu): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu): | |
assignee: | nobody → Luis Henriques (henrix) |
status: | Confirmed → In Progress |
Changed in linux (Ubuntu Trusty): | |
status: | New → In Progress |
assignee: | nobody → Luis Henriques (henrix) |
Changed in linux (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Utopic): | |
status: | In Progress → Fix Released |
tags: |
added: verification-done-trusty removed: verification-needed-trusty |
This change was made by a bot.