mangle a character or forbid/prohibit it's use when creating files/folders

TAKAHASHI Motonobu monyo at monyo.com
Mon Nov 21 17:11:58 MST 2011


From: Jeremy Allison <jra at samba.org>
Date: Mon, 21 Nov 2011 12:15:21 -0800

> On Sat, Nov 19, 2011 at 04:39:51PM -0500, David Collier-Brown wrote:
> > Mangle map was used to map strings to one another, such as .htm to .hml.
> > I suspect the elegant way to deal with blanks in filenames is through a
> > virtual filesystem.
> > You can make "albert alligator.doc" be stored as "albert_alligator.doc", and
> > honor lookups for both forms.
> > 
> > It's been years since I wrote a vfs, but I speculate you're looking at
> > about 50 lines of code...
> 
> Yeah, a small VFS module would do this.

I think the source of vfs_cap.c will help you.
It's simply translating filenames from/to CAP encoding.

---
TAKAHASHI Motonobu <monyo at samba.gr.jp>





More information about the samba-technical mailing list