From: David B. <and...@gm...> - 2013-01-29 07:10:14
|
On Mon, Jan 28, 2013 at 3:54 AM, Hans Beckérus <han...@gm...>wrote: > Looks like the problem is in the way utimensat() is used by touch? Why > would it call utimensat() when the creat() call returned -EPERM? > Possibly because you could be running touch on a directory and open might fail on a directory? > > Hans > > open("x", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_LARGEFILE, 0666) = -1 > EPERM (Operation not permitted) > utimensat(AT_FDCWD, "x", NULL, 0) = -1 ENOENT (No such file or > directory) > open("/usr/share/locale/locale.alias", O_RDONLY) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, > 0) = 0xb7849000 > read(3, "# Locale name alias data base.\n#"..., 4096) = 2570 > read(3, "", 4096) = 0 > close(3) = 0 > > > > On 1/25/13, Miklos Szeredi <mi...@sz...> wrote: > > On Tue, Jan 15, 2013 at 4:11 PM, Hans Beckérus <han...@gm...> > > wrote: > >> > >> Hans Beckerus <hans.beckerus@...> writes: > >> > >>> > >>> > >>> I have a scenario in my high-level FS that should result in an > >>> "Operation not permitted" error when doing eg. 'touch'. > >>> But on some systems I have trouble getting that. I think the reason is > >>> somewhat related to the below: > > > > Hmm, some more info would be useful. It might be an issue with the > > touch program, not fuse or the kernel. Try doing a "strace touch > > ..." and cut out the interesting part from the end (where it creates > > the file and returns an error). > > > > Thanks, > > Miklos > > > > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d > _______________________________________________ > fuse-devel mailing list > fus...@li... > https://lists.sourceforge.net/lists/listinfo/fuse-devel > |