cifs.mount: mapchars + utf8 = loop

2012-09-17 Thread Nicolas Lefebvre
Hello,

I'm trying to mount a smb share with both mapchars and
iocharset=utf8 options and it seems to be bogus.
I must used mapchars option because some folder names contain
non-ascii characters and I must used iocharset=utf8 because some file
names contain question marks.

I have searched on the internet and found a very simple patch for a
2.6.32 kernel (https://bugzilla.samba.org/show_bug.cgi?id=6767)

--- orig/linux-2.6.32/fs/cifs/misc.c 2009-12-03 04:51:21.0 +0100
+++ linux-2.6.32/fs/cifs/misc.c 2011-10-09 22:25:10.767951322 +0200
@@ -713,7 +713,7 @@
 }

 ctoUCS_out:
- return i;
+ return j;
 }

But I'm on Ubuntu 12.04 with a 3.2.0-31 kernel and there is too much
differences for me between the two misc.c files and I'm not able to
report the patch in my kernel.

Did someone have an idea ?

Thanks,
Nicolas
--
To unsubscribe from this list: send the line unsubscribe linux-cifs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Erittäin kiireellinen kiitos !!!

2012-09-17 Thread Mr David Hisco.
Lähettäjä: David Hisco. 


Hyväksy vilpittömät pahoitteluni, jos posti ei täytä henkilökohtaista etiikkaa. 

Aion esitellä itseni David Hisco, olen kansalainen Neitsytsaaret 
Brittiläinen kotipaikka Lontoo. Johtaja kirjanpitoon varainhoito Jakso, 
seuranta taloudellinen verkosto täällä Yhdistyneessä kuningaskunnassa. 

Tämä on yksityiskohta, mitä haluan sinun auttaa minua tekemään, Yksi tilien 
pitämiseen tasapainossa kaksikymmentä miljoonaa viisisataatuhatta kiloa. On 
ollut lepotilassa ja ei ole käytetty viimeisten kahdentoista (12) vuotta. 

Minun tutkimuksia ja vahvistukset, tilin omistajaksi, ulkomaalaisen nimen (Ost 
Bob) kuoli 31. tammikuuta 2000. 

http://aviation.crosswindlanding.com/accidents/alaska_261.htm 

Ja sen jälkeen kukaan ei ole tehnyt mitään mitä väittäen tämän rahaa, koska 
hänellä ei ole perheenjäseniä, jotka ovat tietoisia olemassaolosta Kumpikaan 
tilin eikä varoja. 

Etsin suostumustasi esitellä teille kuin lähiomaiset / Will edunsaajaa kuolleen 
jotta etenee tämän tilin arvo on £ 20,5 miljoonaa puntaa voidaan maksaa 
(siirto) tiliin maasi. 


Tämä maksetaan tai jakaa näitä prosenttimääriä, 60% minulle ja 40% sinulle. 
Kaikki tarvittavat oikeudelliset asiakirjat, joita voidaan käyttää 
varmuuskopiointiin tämä väite turvataan meille. 

Antakaa minulle seuraavat, koska meillä on 7 päivää ajaa se läpi. 
Tämä on hyvin hyvin kiireellinen PLEASE. 
  
1. Koko nimi. 
2. Direct Mobile Number. 
3. Yhteystietosi osoitteeseen. 
4. Ikäsi. 
5. Sinun Ammatti. 

Suostumustasi tähän sähköpostiin ja liiketoiminnan ehdotus on erittäin 
arvostettu. 
  
Terveisin, 
David Hisco.
--
To unsubscribe from this list: send the line unsubscribe linux-cifs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


many-to-one nested CIFS serving

2012-09-17 Thread Steve Finley

To Whom:

I am exploiting a feature of the CIFS server that works for the client under
Windows 8 (not sure about others), but does not work for the linux client
under RedHat/CentOS5/6.

I am mounting multiple Thecus NAS devices via CIFS, making
symbolic links to files on those NAS devices, where I reorganize the
directory structure, and then turn around and serve the top level
of that directory via CIFS.

On a Windows machine I only have to mount that top level directory, and
the symbolic links automatically resolve themselves without having to also
mount the NAS device(s).  THIS IS VERY POWERFUL.  On a linux
machine however, the symbolic links can only be resolved if I have the
NAS devices mounted, and the mount points have to be named as shown
in the link.  It seems that the protocol necessary for this to work under
Windows has not been added to the linux version of the client.

When I surf the web for others exploiting this feature, I find nothing.

Thanks

Steve Finley
Research Associate
CIRA - Colorado State University

--
To unsubscribe from this list: send the line unsubscribe linux-cifs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: many-to-one nested CIFS serving

2012-09-17 Thread Jeff Layton
On Mon, 17 Sep 2012 15:45:54 -0600
Steve Finley steve.fin...@colostate.edu wrote:

 To Whom:
 
 I am exploiting a feature of the CIFS server that works for the client under
 Windows 8 (not sure about others), but does not work for the linux client
 under RedHat/CentOS5/6.
 
 I am mounting multiple Thecus NAS devices via CIFS, making
 symbolic links to files on those NAS devices, where I reorganize the
 directory structure, and then turn around and serve the top level
 of that directory via CIFS.
 
 On a Windows machine I only have to mount that top level directory, and
 the symbolic links automatically resolve themselves without having to also
 mount the NAS device(s).  THIS IS VERY POWERFUL.  On a linux
 machine however, the symbolic links can only be resolved if I have the
 NAS devices mounted, and the mount points have to be named as shown
 in the link.  It seems that the protocol necessary for this to work under
 Windows has not been added to the linux version of the client.
 
 When I surf the web for others exploiting this feature, I find nothing.
 
 Thanks
 
 Steve Finley
 Research Associate
 CIRA - Colorado State University
 

So you're reexporting a CIFS mount from a linux box with samba? Yuck.

Most likely you're running afoul of the fact that when POSIX extensions
are enabled, that symlinks are passed on as-is to the client. If you
mount from the clients using nounix it'll probably do something
closer to what you expect.

In truth though, I think you'd be better served by researching and
configuring a DFS share.

-- 
Jeff Layton jlay...@samba.org
--
To unsubscribe from this list: send the line unsubscribe linux-cifs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: cifs.mount: mapchars + utf8 = loop

2012-09-17 Thread Jeff Layton
On Mon, 17 Sep 2012 15:31:38 +0200
Nicolas Lefebvre nico.lefeb...@gmail.com wrote:

 Hello,
 
 I'm trying to mount a smb share with both mapchars and
 iocharset=utf8 options and it seems to be bogus.
 I must used mapchars option because some folder names contain
 non-ascii characters and I must used iocharset=utf8 because some file
 names contain question marks.
 
 I have searched on the internet and found a very simple patch for a
 2.6.32 kernel (https://bugzilla.samba.org/show_bug.cgi?id=6767)
 
 --- orig/linux-2.6.32/fs/cifs/misc.c 2009-12-03 04:51:21.0 +0100
 +++ linux-2.6.32/fs/cifs/misc.c 2011-10-09 22:25:10.767951322 +0200
 @@ -713,7 +713,7 @@
  }
 
  ctoUCS_out:
 - return i;
 + return j;
  }
 
 But I'm on Ubuntu 12.04 with a 3.2.0-31 kernel and there is too much
 differences for me between the two misc.c files and I'm not able to
 report the patch in my kernel.
 
 Did someone have an idea ?
 

Looks like Baldvin never sent that patch to the list. This should be a
forward port of it. Does it work for you?

-- 
Jeff Layton jlay...@samba.org
From 3e61f98c4553276ef9187975a00721b6e6f4140d Mon Sep 17 00:00:00 2001
From: Jeff Layton jlay...@redhat.com
Date: Mon, 17 Sep 2012 20:36:23 -0400
Subject: [PATCH] cifs: fix return value in cifsConvertToUCS

Reported-by: Baldvin Kovacs baldvin.kov...@gmail.com
Reported-by: Nicolas Lefebvre nico.lefeb...@gmail.com
Signed-off-by: Jeff Layton jlay...@redhat.com
---
 fs/cifs/cifs_unicode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/cifs_unicode.c b/fs/cifs/cifs_unicode.c
index 1b2e180..667776e 100644
--- a/fs/cifs/cifs_unicode.c
+++ b/fs/cifs/cifs_unicode.c
@@ -327,6 +327,6 @@ cifsConvertToUCS(__le16 *target, const char *source, int srclen,
 	}
 
 ctoUCS_out:
-	return i;
+	return j;
 }
 
-- 
1.7.11.4