linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Using a larger memory to cache filename when decoding FH
@ 2019-03-23 13:46 Pei-Feng liu
  2019-03-23 13:46 ` [PATCH] fs/exportfs: Decoding FH with a larger memory to cache the filename Pei-Feng liu
  2019-03-25 23:21 ` [PATCH] Using a larger memory to cache filename when decoding FH J. Bruce Fields
  0 siblings, 2 replies; 3+ messages in thread
From: Pei-Feng liu @ 2019-03-23 13:46 UTC (permalink / raw)
  To: linux-nfs; +Cc: Pei-Feng liu

The maximum length of filename string in 'fs/exportfs/expfs.c' is limited to be
'NAME_MAX'. But I have a special filesystem driver with longer filename. When
exporting it's namespace with NFS, 'exportfs_decode_fh()' can't holds the
filename if its length is larger than 'NAME_MAX'. And 'dentry' in VFS layer
doesn't contrain the length of filename within 'NAME_MAX'. I guess the correct
method is firstly probe the length of filename with 'vfs_statfs()'. With this
value to malloc a larger enough memory to cache the filename when decoding a FH.

Pei-Feng liu (1):
  fs/exportfs: Decoding FH with a larger memory to cache the filename.

 fs/exportfs/expfs.c | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-25 23:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-23 13:46 [PATCH] Using a larger memory to cache filename when decoding FH Pei-Feng liu
2019-03-23 13:46 ` [PATCH] fs/exportfs: Decoding FH with a larger memory to cache the filename Pei-Feng liu
2019-03-25 23:21 ` [PATCH] Using a larger memory to cache filename when decoding FH J. Bruce Fields

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).