Ticket #4145 (closed defect: fixed)

Opened 4 months ago

Last modified 3 months ago

Filenames longer than 255 bytes are not supported

Reported by: birdie Owned by: andrew_b
Priority: major Milestone: 4.8.26
Component: mc-vfs Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: merged Votes for changeset: committed-master

Description

Steps to reproduce (an NTFS filesystem is required):

cd /mnt/ntfs
name="和総坂裁精座回資国定裁出観産大掲記労。基利婚岡第員連聞余枚転屋内分。妹販得野取戦名力共重懲好海。要中心和権瓦教雪外間代円題気変知。貴金長情質思毎標豊装欺期権自馬。訓発宮汚祈子報議広組歴職囲世階沙飲。賞携映麻署来掲給見囲優治落取池塚賀残除捜。三売師定短部北自景訴層海全子相表。著漫寺対表前始稿殺法際込五新店広。"
echo 123 > "$name"

MC won't be able to list this file (shows with ? at the beginning and size as 0), view, edit, copy, rename or delete it.

This is a bug.

Change History

comment:1 Changed 4 months ago by andrew_b

  • Milestone changed from 4.8.26 to Future Releases

comment:2 Changed 4 months ago by andrew_b

comment:3 Changed 4 months ago by birdie

Now that NTFS is about to become a first class citizen in Linux thanks to Paragon this bug is more relevant than ever.

The maximum filename length in NTFS is 255 UTF-16 characters, i.e. 510 bytes (or maybe 511, considering the terminating NULL - I'm not sure about that).

comment:4 Changed 4 months ago by birdie

  • Summary changed from Filenames longer than 255 bytes are not support to Filenames longer than 255 bytes are not supported

comment:5 Changed 3 months ago by andrew_b

  • Status changed from new to accepted
  • Owner set to andrew_b
  • Component changed from mc-core to mc-vfs
  • Branch state changed from no branch to on review
  • Milestone changed from Future Releases to 4.8.26

Branch: 4145_long_file_names
Initial changeset:6a4daaf7b3522fcebe99efd8f1f5fa771b5566a7

comment:6 Changed 3 months ago by andrew_b

  • Votes for changeset set to andrew_b
  • Branch state changed from on review to approved

comment:7 Changed 3 months ago by andrew_b

  • Status changed from accepted to testing
  • Votes for changeset changed from andrew_b to committed-master
  • Resolution set to fixed
  • Branch state changed from approved to merged

Merged to master: [f0a3794b0e8f7ac6fc85f3fe319bad44d8a6db93].

git log --pretty=oneline 356672787..f0a3794b0

comment:8 Changed 3 months ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.