Bug 1319390

Summary: 208 chars is 'filename too long'
Product: [Fedora] Fedora Reporter: cornel panceac <cpanceac>
Component: filesystemAssignee: Ondrej Vasik <ovasik>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-20 07:54:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description cornel panceac 2016-03-19 12:04:46 UTC
Description of problem:
trying to create a filename ~ 160 chars long, this fails on ext4:


# touch "Валгина Нина, Еськова Наталья, Иванова Ольга, Кузьмина Светлана, Лопатин Владимир, Чельцова Людмила - Правила русской орфографии и пунктуации.Полный академический справочник.fb2"
touch: cannot touch ‘Валгина Нина, Еськова Наталья, Иванова Ольга, Кузьмина Светлана, Лопатин Владимир, Чельцова Людмила - Правила русской орфографии и пунктуации.Полный академический справочник.fb2’: File name too long

Version-Release number of selected component (if applicable):

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
i;m not sure is the filesystem itself ,at stake. it maybe the kernel.

Linux james.last 4.4.4-301.fc23.i686+PAE #1 SMP Fri Mar 4 18:03:11 UTC 2016 i686 i686 i386 GNU/Linux

The filesystem is:

/dev/sda1 on /boot type ext4 (rw,relatime,seclabel,data=ordered)

Comment 1 cornel panceac 2016-03-19 12:37:39 UTC
If instead i create a file who's name has 255 characters, all form '1' to '8' this works fine.

Comment 2 Ondrej Vasik 2016-03-20 07:54:59 UTC
filesystem component is definitely wrong, as it creates and owns basic system directories.
I tend to say this is not a bug - reason for this is in the multibyte characters used in filename. Default limit is 255 bytes - not 255 chars. Therefore it may confuse some people, who use multibyte characters - like letters from Cyrillic. See https://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits for the list of filesystems that have limit in chars, not bytes.
Closing NOTABUG, even without reassigning to other components. If you see somewhere documented limit is 255 chars, feel free to open it as documentation issue.

Comment 3 cornel panceac 2016-03-20 08:46:01 UTC
Thnk you, now i understand were i the problem coming from. Is there a Linux filesystem that supports a longer filename?