@@ -40,10 +40,6 @@ impl Mount {
4040 self . mnt_op_data . lock ( ) . vfs_root ( )
4141 }
4242
43- pub fn vfs_quotactl ( & self ) {
44- self . mnt_op_data . lock ( ) . vfs_quotactl ( )
45- }
46-
4743 pub fn vfs_statvfs ( & self ) {
4844 self . mnt_op_data . lock ( ) . vfs_statvfs ( )
4945 }
@@ -60,14 +56,6 @@ impl Mount {
6056 self . mnt_op_data . lock ( ) . vfs_lookup ( path)
6157 }
6258
63- pub fn vfs_fhtovp ( & self ) {
64- self . mnt_op_data . lock ( ) . vfs_fhtovp ( )
65- }
66-
67- pub fn vfs_vptofh ( & self ) {
68- self . mnt_op_data . lock ( ) . vfs_vptofh ( )
69- }
70-
7159 pub fn vfs_init ( & mut self ) {
7260 self . mnt_op_data . lock ( ) . vfs_init ( )
7361 }
@@ -76,10 +64,6 @@ impl Mount {
7664 self . mnt_op_data . lock ( ) . vfs_done ( )
7765 }
7866
79- pub fn vfs_extattrctl ( & self ) {
80- self . mnt_op_data . lock ( ) . vfs_extattrctl ( )
81- }
82-
8367 pub fn vfs_name ( & self ) -> String {
8468 self . mnt_op_data . lock ( ) . vfs_name ( )
8569 }
@@ -100,14 +84,9 @@ pub trait VfsOps {
10084 /// Gets the file system root vnode.
10185 fn vfs_root ( & self ) -> Result < Arc < Spinlock < VNode > > > ;
10286
103- /// Queries or modifies space quotas.
104- fn vfs_quotactl ( & self ) {
105- unimplemented ! ( "{} does not implement vfs_quotactl" , self . vfs_name( ) ) ;
106- }
107-
10887 /// Gets file system statistics.
10988 fn vfs_statvfs ( & self ) {
110- unimplemented ! ( "{} does not implement vfs_statvfs" , self . vfs_name( ) ) ;
89+ todo ! ( "{} does not implement vfs_statvfs" , self . vfs_name( ) ) ;
11190 }
11291
11392 /// Flushes file system buffers.
@@ -118,37 +97,20 @@ pub trait VfsOps {
11897
11998 fn vfs_lookup ( & self , path : & PathBuf ) -> Result < Arc < Spinlock < VNode > > > ;
12099
121- /// Converts a NFS file handle to a vnode.
122- fn vfs_fhtovp ( & self ) {
123- unimplemented ! ( "{} does not implement vfs_fhtovp" , self . vfs_name( ) ) ;
124- }
125-
126- /// Converts a vnode to a NFS file handle.
127- fn vfs_vptofh ( & self ) {
128- unimplemented ! ( "{} does not implement vfs_vptofh" , self . vfs_name( ) ) ;
129- }
130-
131100 /// Initializes the file system driver.
132101 fn vfs_init ( & mut self ) ;
133102
134103 /// Reinitializes the file system driver.
135104 fn vfs_reinit ( & self ) {
136- unimplemented ! ( "{} does not implement vfs_reinit" , self . vfs_name( ) ) ;
105+ todo ! ( "{} does not implement vfs_reinit" , self . vfs_name( ) ) ;
137106 }
138107
139108 /// Finalizes the file system driver.
140109 fn vfs_done ( & self ) ;
141110
142111 /// Mounts an instance of the file system as the root file system.
143112 fn vfs_mountroot ( & self ) {
144- unimplemented ! ( "{} does not implement vfs_mountroot" , self . vfs_name( ) ) ;
145- }
146-
147- /// Controls extended attributes.
148- // The generic vfs_stdextattrctl function is provided as a simple hook for file system that do not support this operation
149- // TODO: create a generic vfs_stdextattrctl function
150- fn vfs_extattrctl ( & self ) {
151- unimplemented ! ( "{} does not implement vfs_extattrctl" , self . vfs_name( ) ) ;
113+ todo ! ( "{} does not implement vfs_mountroot" , self . vfs_name( ) ) ;
152114 }
153115
154116 /// Returns the name of the file system
0 commit comments