Bug 22756

Summary: ntfs filesystems can be listed, but no files can be read
Product: Base System Reporter: drwilco <drwilco>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description drwilco 2000-11-10 22:30:00 UTC
Since somewhere in October (on 5.0-CURRENT) files on a NTFS filesystem cannot be read, although directory listings can be made. The error returned is "Inappropriate ioctl for device"

Fix: ntfs_bypass() always returns ENOTTY (Inappropriate ioctl for device), and is only used for vop_default_desc. Looking at other fs's I came to the conclusion that they almost all use vop_defaultop() for vop_default_desc, or code that is exactly the same. Hence the following patch, which works fine for me.
How-To-Repeat: Mount a NTFS partition, try to cat(1) a file.
Comment 1 Boris Popov freebsd_committer freebsd_triage 2000-11-18 02:47:43 UTC
State Changed
From-To: open->closed

Committed, thanks!