symlink_prefix
Quoted 3 lines
Current interface had grown an impressive collection of warts. Worse yet, you _can't_ put parsing into generic code. There are filesystems that have a binary object as 'data'.
Yes, that was a very unfortunate decision, back in the good old times when nfs was implemented. And smb, ncp, coda followed nfs.
Nevertheless, there is no problem adding vfs_parse_mount_options(). For example, one can have a flag FS_HAS_BINARY_MOUNT_DATA in the fs_flags field of the struct file_system_type that describes the filesystem type, and refrain from trying to parse the mount data when this bit is set.
Andries
Quoted 4 lines · On Sun, 3 Jun 2001 [email protected] wrote:
Quoted 3 lines
Current interface had grown an impressive collection of warts. Worse yet, you _can't_ put parsing into generic code. There are filesystems that have a binary object as 'data'.
Quoted 8 lines
Yes, that was a very unfortunate decision, back in the good old times when nfs was implemented. And smb, ncp, coda followed nfs.
Nevertheless, there is no problem adding
vfs_parse_mount_options(). For example, one can have a flagFS_HAS_BINARY_MOUNT_DATAin thefs_flagsfield of the structfile_system_typethat describes the filesystem type, and refrain from trying to parse the mount data when this bit is set.
We can kludge around anything. The question being, what for? It still leaves ncp with its ioctls ugliness. It still treats device name in a special way for no good reason - it _is_ an option, just like any other. Hell, less generic than nosuid or read-only. It still leaves us with cruft in flags. What for? To maintain binary compatibility with one utility? We can leave the old interface in place and freeze it.
Quoted 1 line · Alexander Viro
leaves ncp with its ioctls ugliness.
Authentication will be ugly. Joe mounts a filesystem, and does not bother to authenticate. He gets world-accessible files. Then Kevin authenticates as himself, and later as db_adm too. Along comes Sue, who can authenticate the whole box as trusted.
The /fs/ext2 stuff is one of the nastiest hacks I've seen in a long time, and it doesn't solve the authentication problem.
GUI users might like to see a dialog box pop up whenever they hit restricted filesystem space. (example: an authentication tool blocked on /dev/auth-notify or getting signals with info)