All of lore.kernel.org
 help / color / mirror / Atom feed
From: Niels Basjes <Niels-WkKhAqUkEt5mR6Xm/wNWPw@public.gmane.org>
To: Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: CentOS cifs client sees Windows 2012 deduplicated files as symlinks
Date: Mon, 15 Jun 2015 12:38:56 +0200	[thread overview]
Message-ID: <CADoiZqrt0z7f7zs7917e2tCzFb7UFTvN2kaeYRj-A+F4Nmc7LA@mail.gmail.com> (raw)
In-Reply-To: <CAH2r5msRpHM7yCHEN5J=osLSnfp+PFepsM8tse8dbJ9FugTvHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

I tried adding the option 'vers=2.1' to the mount but that gave an error:
     mount error(38): Function not implemented

I do not understand why I saw the files as 'chinese letters' before.
After my tests and experiments I have been unable to see them this
way.
Right now I always see them as a symlink to an empty directory (as you
indicated).

A few days ago someone posted on serverfault that in fact this is a
known bug that has been fixed (in kernel 3.13), yet the CentOS 7
distribution has not yet picked up on this problem because it is
running kernel 3.10.

See:
https://bugs.centos.org/view.php?id=7897
http://serverfault.com/questions/697393/centos-cifs-client-sees-windows-2012-deduplicated-files-as-symlinks

Right now I'm considering to install something like this
http://elrepo.org/tiki/kernel-ml and run on Linux Kernel 4.x which
should no longer have this problem.

Niels Basjes


On Thu, Jun 11, 2015 at 6:17 PM, Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Out of curiosity what happens when you mount with smb2 or later (e.g.
> vers=2.1 on mount) - I expect that they will be recognized
> differently.
>
> Copy on write symlinks are reparse points but I would expect them to
> look like empty directories.
>
> On Thu, Jun 11, 2015 at 6:53 AM, Niels Basjes <Niels-WkKhAqUkEt5mR6Xm/wNWPw@public.gmane.org> wrote:
>> Hi,
>>
>> Last week I ran into a serious problem from my CentOS 7 system using
>> the cifs client to mount a volume on a Windows 2012-R2 server.
>> I posted this a problem on ServerFault (
>> http://serverfault.com/q/697393 ) a few days ago but I thought that it
>> is usefull to ask here too.
>> I included some screenshots in the serverfault page so that may be
>> useful to have a look at.
>>
>> The essence of my problem is that the local Windows sysadmin turned on
>> a feature to deduplicate files on an existing Windows server volume.
>> After that my Linux system started seeing all the files that were
>> deduplicated as symlinks to what I can only describe as 'chinese
>> letters'.
>> Under Windows 7 everything works fine.
>>
>> The way I currently look at this is that what is apparently some kind
>> of 'copy-on-write hardlink' on the Windows server is interpreted as a
>> softlink by the cifs client in my CentOS system.
>>
>> I have been experimenting with some mount settings but I have been
>> unable to fix this problem (other than turning off the deduplication).
>>
>> My current (Client) setup:
>> - CentOS 7.0
>> - samba-client-4.1.1-38.el7_0.x86_64
>> - samba-common-4.1.1-38.el7_0.x86_64
>> - samba-libs-4.1.1-38.el7_0.x86_64
>> - cifs-utils-6.2-7.el7.x86_64
>>
>> The command in my /etc/fstab
>>
>> \\xxxxxxxx\file\video /var/www/html/wp-content/uploads cifs
>> nouser_xattr,nounix,iocharset=utf8,credentials=/etc/fstab.cifs.sa_video.credentials,_netdev,uid=apache,gid=apache,rw,auto
>> 0 0
>>
>> How do I get the Linux to see these files as files again?
>>
>>
>> --
>> Best regards / Met vriendelijke groeten,
>>
>> Niels Basjes
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
> --
> Thanks,
>
> Steve



-- 
Best regards / Met vriendelijke groeten,

Niels Basjes

  parent reply	other threads:[~2015-06-15 10:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CADoiZqqHT1eh7-BvxpbSg8a5S+kLqBmBi-CXWp562BeXooVLgA@mail.gmail.com>
     [not found] ` <CADoiZqqHT1eh7-BvxpbSg8a5S+kLqBmBi-CXWp562BeXooVLgA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-11 11:53   ` Fwd: CentOS cifs client sees Windows 2012 deduplicated files as symlinks Niels Basjes
     [not found]     ` <CADoiZqqc1Opge73nADG=xPtzvAE2oyK5bf6w3nCZ6n8k6bcfag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-11 16:17       ` Steve French
     [not found]         ` <CAH2r5msRpHM7yCHEN5J=osLSnfp+PFepsM8tse8dbJ9FugTvHQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-15 10:38           ` Niels Basjes [this message]
     [not found]             ` <CADoiZqrt0z7f7zs7917e2tCzFb7UFTvN2kaeYRj-A+F4Nmc7LA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-06-21 19:43               ` Niels Basjes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADoiZqrt0z7f7zs7917e2tCzFb7UFTvN2kaeYRj-A+F4Nmc7LA@mail.gmail.com \
    --to=niels-wkkhaquket5mr6xm/wnwpw@public.gmane.org \
    --cc=linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.