linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 217145] New: Feature request: I need very long directory and file names
@ 2023-03-06  8:08 bugzilla-daemon
  2023-03-06 10:15 ` [Bug 217145] " bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-03-06  8:08 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217145

            Bug ID: 217145
           Summary: Feature request: I need very long directory and file
                    names
           Product: File System
           Version: 2.5
    Kernel Version: 5.15.34-un-def-alt1
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: vyacheslav.sahno@yandex.ru
        Regression: No

I am a youtuber-linuxoid. I need to group videos in a directory by date(name)
and list of what seen on a videos at that date(1-3 Kilobytes).

Also torrent client cutting names needed in Linux because of limit of
filenames.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 217145] Feature request: I need very long directory and file names
  2023-03-06  8:08 [Bug 217145] New: Feature request: I need very long directory and file names bugzilla-daemon
@ 2023-03-06 10:15 ` bugzilla-daemon
  2023-03-06 13:00 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-03-06 10:15 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217145

Christian Kujau (kernel@nerdbynature.de) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kernel@nerdbynature.de

--- Comment #1 from Christian Kujau (kernel@nerdbynature.de) ---
Ext4 (and Btrfs and XFS too) supports file names up to 255 bytes long. How long
do you need a file name to be? That 1-3 KB refers to....a list of files, or the
actual file name length? I'm interested in the actual use cases for this. Also,
what's that name of the torrent client that magically truncates file names
here?

$ mkdir -p $(perl -e 'print "a"x255')/$(perl -e 'print "b"x255')
$ touch $(perl -e 'print "a"x255')/$(perl -e 'print "b"x255')/$(perl -e 'print
"c"x255')
$ find a*
aaaaaaaaaaaaa[...] well, you get the idea :-)

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 217145] Feature request: I need very long directory and file names
  2023-03-06  8:08 [Bug 217145] New: Feature request: I need very long directory and file names bugzilla-daemon
  2023-03-06 10:15 ` [Bug 217145] " bugzilla-daemon
@ 2023-03-06 13:00 ` bugzilla-daemon
  2023-03-06 16:05 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-03-06 13:00 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217145

--- Comment #2 from Vyacheslav Sakhno (vyacheslav.sahno@yandex.ru) ---
Directory name is a story of a filming day of 1-3KB length, video file name is
a story in a video with a length also 1-3KB. I read them "diagonally" and it is
a digest as a tweet but bigger.
https://yandex.ru/search/?text=linux+torrent+client+cutting+long+torrent+file+names&lr=10828&clid=2583699&win=567

https://askubuntu.com/questions/181730/how-to-download-torrents-with-long-filenames

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 217145] Feature request: I need very long directory and file names
  2023-03-06  8:08 [Bug 217145] New: Feature request: I need very long directory and file names bugzilla-daemon
  2023-03-06 10:15 ` [Bug 217145] " bugzilla-daemon
  2023-03-06 13:00 ` bugzilla-daemon
@ 2023-03-06 16:05 ` bugzilla-daemon
  2023-03-06 18:38 ` bugzilla-daemon
  2023-03-08  5:01 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-03-06 16:05 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217145

--- Comment #3 from Christian Kujau (kernel@nerdbynature.de) ---
"video file name is a story"...interesting setup :-) But as you already found
in your Askubuntu forum: "The problem is the common Linux file systems only
support up to 255 characters filename lengths". This is explained in more
detail in the following SE answers:

> To what extent does Linux support file names longer than 255 bytes?
> https://unix.stackexchange.com/a/619646

> Is there a reasonble way to increase the file name limitation of 255 bytes?
> https://unix.stackexchange.com/a/619492

So, this would not be a feature request of Ext4 (or any other Linux file
system) but of the Linux VFS, but I don't think that will be easliy implemented
in the near future. Your best bet would be to change your workflow and use
shorter file names.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 217145] Feature request: I need very long directory and file names
  2023-03-06  8:08 [Bug 217145] New: Feature request: I need very long directory and file names bugzilla-daemon
                   ` (2 preceding siblings ...)
  2023-03-06 16:05 ` bugzilla-daemon
@ 2023-03-06 18:38 ` bugzilla-daemon
  2023-03-08  5:01 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-03-06 18:38 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217145

Andreas Dilger (adilger.kernelbugzilla@dilger.ca) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adilger.kernelbugzilla@dilg
                   |                            |er.ca

--- Comment #4 from Andreas Dilger (adilger.kernelbugzilla@dilger.ca) ---
The problem with "long filename is a description of the video" is that 1-3KiB
today may grow to 4KiB or 16KiB in the future, so fixing the filename length to
allow 1KiB or 3KiB names (out of a full 4KiB PATH_MAX) is only a short term
solution.  Changing ext4 or XFS to support 3KiB or 4KiB *filenames* would be a
lot of effort for very marginal benefit. 

I think the right solution is to put the "full description" into a separate
xattr on the file (which can be up to 64KiB in modern ext4) and then restrict
filenames to 255 bytes. That allows very long descriptions without impacting
interoperability.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

* [Bug 217145] Feature request: I need very long directory and file names
  2023-03-06  8:08 [Bug 217145] New: Feature request: I need very long directory and file names bugzilla-daemon
                   ` (3 preceding siblings ...)
  2023-03-06 18:38 ` bugzilla-daemon
@ 2023-03-08  5:01 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2023-03-08  5:01 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=217145

Artem S. Tashkinov (aros@gmx.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Artem S. Tashkinov (aros@gmx.com) ---
This is impossible because it will break countless programs and POSIX
compatibility.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

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

end of thread, other threads:[~2023-03-08  5:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-06  8:08 [Bug 217145] New: Feature request: I need very long directory and file names bugzilla-daemon
2023-03-06 10:15 ` [Bug 217145] " bugzilla-daemon
2023-03-06 13:00 ` bugzilla-daemon
2023-03-06 16:05 ` bugzilla-daemon
2023-03-06 18:38 ` bugzilla-daemon
2023-03-08  5:01 ` bugzilla-daemon

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).