Bug 131341 - makefs (ffs): error "Bad file descriptor" on the mount point of md-presentation makefs image
Summary: makefs (ffs): error "Bad file descriptor" on the mount point of md-presentat...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 7.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-03 13:50 UTC by Oleg Ginzburg
Modified: 2023-04-18 17:41 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Ginzburg 2009-02-03 13:50:02 UTC
"df <mountpoint>"
return "Bad file descriptor" when mount point is md-based layer presentation of image and image created with sector-size > 512 (default):
--
mount /mnt
mount: /mnt: unknown special file or file system
--

With "df" without arguments pictures is correct
--
df |grep mnt
/dev/md0           5079        1      4672     0%    /mnt
--

How-To-Repeat: 1) mkdir /tmp/empty && makefs -S 1024 -s 5m /tmp/newimage /tmp/empty
2) mount /dev/`mdconfig -a -t vnode -f /tmp/newimage` /mnt
3) df /mnt
4) df

(where /mnt is free point for mounting)
Comment 1 Remko Lodder freebsd_committer freebsd_triage 2009-02-04 18:40:08 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-fs

reassign to -fs
Comment 2 Jaakko Heinonen 2009-03-23 16:31:30 UTC
See this message:

http://docs.freebsd.org/cgi/mid.cgi?20090323154536.GA2853

and a patch:

http://www.saunalahti.fi/~jh3/patches/ffs-fs_fsbtodb.diff

-- 
Jaakko
Comment 3 Oleg Ginzburg 2009-03-24 18:21:14 UTC
Hello Jaakko,

I've apply yours http://www.saunalahti.fi/~jh3/patches/ffs-fs_fsbtodb.diff 
patch and this work fine for my, problem of PR-131341 is gone. Thanks a lot!


On Monday 23 March 2009 19:31:30 Jaakko Heinonen wrote:
> See this message:
>
> http://docs.freebsd.org/cgi/mid.cgi?20090323154536.GA2853
>
> and a patch:
>
> http://www.saunalahti.fi/~jh3/patches/ffs-fs_fsbtodb.diff
Comment 4 Enji Cooper freebsd_committer freebsd_triage 2015-10-25 22:12:56 UTC
Bulk taking makefs bugs.
Comment 5 Enji Cooper freebsd_committer freebsd_triage 2017-11-05 20:59:19 UTC
Handing a number of makefs, mtree, and msdosfs bugs in my queue over to emaste@.
Comment 6 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:41:23 UTC
batch change:

For bugs that match the following
-  Status Is In progress 
AND
- Untouched since 2018-01-01.
AND
- Affects Base System OR Documentation

DO:

Reset to open status.


Note:
I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Comment 7 Ed Maste freebsd_committer freebsd_triage 2018-05-28 20:32:51 UTC
Reset asignee - I am not currently looking at this PR.
Comment 8 Ed Maste freebsd_committer freebsd_triage 2023-04-18 17:41:16 UTC
Patch URL is 404