linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Why is the length of max mount option a page size??
@ 2018-05-21 17:39 Jungsub Shin
  2018-05-25 10:42 ` J. R. Okajima
  0 siblings, 1 reply; 8+ messages in thread
From: Jungsub Shin @ 2018-05-21 17:39 UTC (permalink / raw)
  To: viro; +Cc: linux-fsdevel, linux-kernel

Hi, now i'm interested in mount lenght of max mount option.
I anaylsis ksys_mount() function in /fs/namespace.c. and find out 
the length of max mount option is a page size (4096 bytes).

I know that almost mount option short and page size is enough to
contain almost mount options. but because of options for 
unionfs(overlay, aufs), lenght of mount option could be exceed it
and cut.

I suffer this problem with aufs. aufs's branch option is cut and 
fail to aufs mount. I know that aufs is not offical fs in linux, 
but overlay fs now support multi layer mount option and could be 
suffer the same problem.

I think the best is dynamic allocate mount option's kernel memory. 
but I'm only have shallow knowlege of kernel, I can't guess it.
And I think If the length of mount option cannot exceed a page size, 
kernel must leave warning messsage about lenght and return err.
copy_mount_options() function seems to done this.

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

end of thread, other threads:[~2018-05-31  0:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-21 17:39 Why is the length of max mount option a page size?? Jungsub Shin
2018-05-25 10:42 ` J. R. Okajima
2018-05-29  0:24   ` Jungsub Shin
2018-05-29  1:14     ` Al Viro
2018-05-29  3:57       ` Jungsub Shin
2018-05-30  2:40         ` J. R. Okajima
2018-05-30 23:51           ` Jungsub Shin
2018-05-29  1:14     ` J. R. Okajima

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).