OSError: [Errno 95] Operation not supported

4,744 views
Skip to first unread message

fus...@fussel.de

unread,
Jun 13, 2011, 2:47:24 PM6/13/11
to Repo and Gerrit Discussion
Dears,

I am interested in Android and tried to download the respository on an
Ubuntu machine (2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8 18:25:51
UTC 2011 x86_64 GNU/Linux). I did this saying

repo init -u git://android.git.kernel.org/platform/manifest.git

. git is installed. This is what I got:

Getting repo ...
from git://android.git.kernel.org/tools/repo.git
remote: Counting objects: 1299, done.
remote: Compressing objects: 100% (569/569), done.
remote: Total 1299 (delta 833), reused 1133 (delta 707)
Receiving objects: 100% (1299/1299), 368.54 KiB, done.
Resolving deltas: 100% (833/833), done.
From git://android.git.kernel.org/tools/repo
* [new branch] maint -> origin/maint
* [new branch] master -> origin/master
* [new branch] stable -> origin/stable
* [new tag] v1.7.5 -> v1.7.5
From git://android.git.kernel.org/tools/repo
* [new tag] v1.0 -> v1.0
* [new tag] v1.0.1 -> v1.0.1
* [new tag] v1.0.2 -> v1.0.2
* [new tag] v1.0.3 -> v1.0.3
* [new tag] v1.0.4 -> v1.0.4
* [new tag] v1.0.5 -> v1.0.5
* [new tag] v1.0.6 -> v1.0.6
* [new tag] v1.0.7 -> v1.0.7
* [new tag] v1.0.8 -> v1.0.8
* [new tag] v1.0.9 -> v1.0.9
* [new tag] v1.1 -> v1.1
* [new tag] v1.2 -> v1.2
* [new tag] v1.3 -> v1.3
* [new tag] v1.3.1 -> v1.3.1
* [new tag] v1.3.2 -> v1.3.2
* [new tag] v1.4 -> v1.4
* [new tag] v1.4.1 -> v1.4.1
* [new tag] v1.4.2 -> v1.4.2
* [new tag] v1.4.3 -> v1.4.3
* [new tag] v1.4.4 -> v1.4.4
* [new tag] v1.5 -> v1.5
* [new tag] v1.5.1 -> v1.5.1
* [new tag] v1.6 -> v1.6
* [new tag] v1.6.1 -> v1.6.1
* [new tag] v1.6.10 -> v1.6.10
* [new tag] v1.6.10.1 -> v1.6.10.1
* [new tag] v1.6.10.2 -> v1.6.10.2
* [new tag] v1.6.2 -> v1.6.2
* [new tag] v1.6.3 -> v1.6.3
* [new tag] v1.6.4 -> v1.6.4
* [new tag] v1.6.5 -> v1.6.5
* [new tag] v1.6.6 -> v1.6.6
* [new tag] v1.6.7 -> v1.6.7
* [new tag] v1.6.7.1 -> v1.6.7.1
* [new tag] v1.6.7.2 -> v1.6.7.2
* [new tag] v1.6.7.3 -> v1.6.7.3
* [new tag] v1.6.7.4 -> v1.6.7.4
* [new tag] v1.6.7.5 -> v1.6.7.5
* [new tag] v1.6.8 -> v1.6.8
* [new tag] v1.6.8.1 -> v1.6.8.1
* [new tag] v1.6.8.10 -> v1.6.8.10
* [new tag] v1.6.8.11 -> v1.6.8.11
* [new tag] v1.6.8.2 -> v1.6.8.2
* [new tag] v1.6.8.3 -> v1.6.8.3
* [new tag] v1.6.8.4 -> v1.6.8.4
* [new tag] v1.6.8.5 -> v1.6.8.5
* [new tag] v1.6.8.6 -> v1.6.8.6
* [new tag] v1.6.8.7 -> v1.6.8.7
* [new tag] v1.6.8.8 -> v1.6.8.8
* [new tag] v1.6.8.9 -> v1.6.8.9
* [new tag] v1.6.9 -> v1.6.9
* [new tag] v1.6.9.1 -> v1.6.9.1
* [new tag] v1.6.9.2 -> v1.6.9.2
* [new tag] v1.6.9.3 -> v1.6.9.3
* [new tag] v1.6.9.4 -> v1.6.9.4
* [new tag] v1.6.9.5 -> v1.6.9.5
* [new tag] v1.6.9.6 -> v1.6.9.6
* [new tag] v1.6.9.7 -> v1.6.9.7
* [new tag] v1.6.9.8 -> v1.6.9.8
* [new tag] v1.7 -> v1.7
* [new tag] v1.7.1 -> v1.7.1
* [new tag] v1.7.2 -> v1.7.2
* [new tag] v1.7.3 -> v1.7.3
* [new tag] v1.7.3.1 -> v1.7.3.1
* [new tag] v1.7.4 -> v1.7.4
* [new tag] v1.7.4.1 -> v1.7.4.1
* [new tag] v1.7.4.2 -> v1.7.4.2
* [new tag] v1.7.4.3 -> v1.7.4.3
Getting manifest ...
from git://android.git.kernel.org/platform/external/srec.git
Traceback (most recent call last):
File "/home/samba/projekte/android/WORKING_DIRECTORY/.repo/repo/
main.py", line 238, in <module>
_Main(sys.argv[1:])
File "/home/samba/projekte/android/WORKING_DIRECTORY/.repo/repo/
main.py", line 220, in _Main
repo._Run(argv)
File "/home/samba/projekte/android/WORKING_DIRECTORY/.repo/repo/
main.py", line 125, in _Run
cmd.Execute(copts, cargs)
File "/home/samba/projekte/android/WORKING_DIRECTORY/.repo/repo/
subcmds/init.py", line 259, in Execute
self._SyncManifest(opt)
File "/home/samba/projekte/android/WORKING_DIRECTORY/.repo/repo/
subcmds/init.py", line 113, in _SyncManifest
m._InitGitDir()
File "/home/samba/projekte/android/WORKING_DIRECTORY/.repo/repo/
project.py", line 1473, in _InitGitDir
self._InitHooks()
File "/home/samba/projekte/android/WORKING_DIRECTORY/.repo/repo/
project.py", line 1503, in _InitHooks
os.symlink(relpath(stock_hook, dst), dst)
OSError: [Errno 95] Operation not supported


What went wrong?

Thanks,

Benjamin

Shawn Pearce

unread,
Jun 13, 2011, 2:58:32 PM6/13/11
to fus...@fussel.de, Repo and Gerrit Discussion
On Mon, Jun 13, 2011 at 11:47, fus...@fussel.de <fus...@fussel.de> wrote:
> I am interested in Android and tried to download the respository on an
> Ubuntu machine (2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8 18:25:51
> UTC 2011 x86_64 GNU/Linux). I did this saying
...

>  File "/home/samba/projekte/android/WORKING_DIRECTORY/.repo/repo/
> project.py", line 1503, in _InitHooks
>    os.symlink(relpath(stock_hook, dst), dst)
> OSError: [Errno 95] Operation not supported

Your filesystem does not support symlinks. Is this an MS-DOS
filesystem that you have mounted? Or something else exotic that does
not support POSIX standards like symbolic links?

fus...@fussel.de

unread,
Jun 13, 2011, 3:06:48 PM6/13/11
to Repo and Gerrit Discussion


Error: [Errno 95] Operation not supported
>
> Your filesystem does not support symlinks. Is this an MS-DOS
> filesystem that you have mounted? Or something else exotic that does
> not support POSIX standards like symbolic links?

It's a Samba share, so the filesystem is CIFS. I have re-tried it on a
ext3 share and it seems to work now. Thanks, this hint was very
valuable!

Brad Larson

unread,
Jun 14, 2011, 5:38:51 PM6/14/11
to Repo and Gerrit Discussion
FYI - I have a patch to repo which should allow it to work on CIFS/
Windows/[non-symlink-supporting-platform]. If you need to use a CIFS
filesystem, I'd be curious if it helps you. The patch is somewhat old
but repo doesn't change much, hopefully it will still apply cleanly:
https://review.source.android.com/#change,20981

Brad
Reply all
Reply to author
Forward
0 new messages