bugGluster - Bugs: bug #25285, filter translator not translating...

 
 

bug #25285: filter translator not translating uid as expected

Submitted by:  swankier <swankier>
Submitted on:  Fri 09 Jan 2009 05:26:36 PM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Improper behaviour
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Swankier
Open/Closed: ClosedRelease: 
Operating System: GNU/LinuxReproducibility: Intermittent

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 24 Jun 2009 04:10:31 AM UTC, comment #1:

UID of root is '0' and the 'option translate-uid 1-65533=65534,65535=65534' does not translate files created by root.

--
Gowda

Basavanagowda Kanur <gowda>
Project Member
Fri 09 Jan 2009 05:26:36 PM UTC, original submission:

expected:

if I touch a file as root, that file will be owned by uid 65534

got:

an error.

2009-01-09 12:23:22 E [fuse-bridge.c:1423:fuse_create_cbk] glusterfs-fuse: 70: /again => -1 (Operation not permitted)

example:

web1:/www/photo_rolls_ite# ls -la
total 68
drwxr-xr-x 2 nobody root 4096 2009-01-09 12:25 .
drwxr-xr-x 7 root root 4096 2008-12-28 04:13 ..
-rw-r--r-- 1 nobody nogroup 0 2009-01-07 19:02 ass
-rw-r--r-- 1 nobody nogroup 0 2009-01-09 12:18 me
-rw------- 1 nobody root 16384 2009-01-07 13:24 passdb.tdb
-rw------- 1 nobody root 20480 2009-01-07 13:24 secrets.tdb
-rw-r--r-- 1 nobody root 0 2009-01-07 18:34 test2
web1:/www/photo_rolls_ite# touch files
touch: setting times of `files': No such file or directory
web1:/www/photo_rolls_ite# rm test2
rm: cannot remove `test2': Operation not permitted

config:

web1:/usr/local/var/log/glusterfs# cat /usr/local/etc/glusterfs/glusterfs-client.vol-test
volume client
type protocol/client
option transport-type tcp
option remote-host 10.5.1.180
option remote-port 6997
option remote-subvolume testt
end-volume

### Add IO-Cache feature
volume iocache
type performance/io-cache
option page-size 512KB
option page-count 2
subvolumes client
end-volume

### Add writeback feature
volume writeback
type performance/write-behind
option aggregate-size 1MB
option window-size 2MB
option flush-behind off
subvolumes iocache
end-volume

volume brick-readonly
type features/filter
option translate-uid 1-65533=65534,65535=65534
subvolumes writeback
end-volume

swankier <swankier>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gowda (Posted a comment)
  • -unavailable- added by swankier (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 24 Jun 2009 04:10:31 AM UTCgowdaOriginator Name=>Swankier
      Open/ClosedOpen=>Closed
    Wed 24 Jun 2009 04:10:30 AM UTCgowdaStatusNone=>Invalid
      Privacy0(Error - Not Found)=>Public

    Back to the top


    Powered by Savane 3.1-cleanup1