[Bug 1517] New: mount does not use the provided filesystem handler table functions
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Fri May 14 16:11:47 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1517
Summary: mount does not use the provided filesystem handler
table functions
Product: RTEMS
Version: 4.10
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: filesystem
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: bharath.s.jois at gmail.com
Created an attachment (id=749)
--> (http://www.rtems.org/bugzilla/attachment.cgi?id=749)
File from rtems/testsuites/psxtests/psxfile01/test.c
The code:
mount(&mt_entry, &IMFS_ops_modified,
RTEMS_FILESYSTEM_READ_WRITE, NULL, "/imfs");
is supposed to mount a filesystem
- at /imfs
- filesystem handler table functions from &IMFS_ops_modified
- with options = RTEMS_FILESYSTEM_READ_WRITE
- device type = NULL and
- and should fill the mt_entry with appropriate mount table entry value
and all operations involving the filesystem handler functions under this newly
mounted filesystem need to use the provided handler functions (during mount)
Error:
The mount call does seem to consider the provided handler function table.
Instead,
if IMFS_ops_modified.fsmount_me_h is IMFS_initialize, the handlers associated
with mt_entry would be set to IMFS_ops (see imfs_init.c)
similar pattern was seen for the dosfs too
The above behaviour was seen during coverage improvement while exercising the
_rename_r function in the libcsupport.
Attached is the original source file. Line 150 and 426 need to be looked into
for details of operation.
--
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the bugs
mailing list