Re: [Gluster-devel] Community Meeting: Make it more reachable

2020-02-07 Thread sankarshan
On Fri, Feb 7, 2020, 18:37 Sunny Kumar  wrote:

> On Thu, Feb 6, 2020 at 11:47 AM sankarshan  wrote:
> >
> > On Thu, 6 Feb 2020 at 16:24, Yati Padia  wrote:
> > >
> > > Hi,
> > > In response to the discussion that we had about the timings of the
> community meeting, I would like to propose that we can have it at 3PM/4PM
> IST on 11th February to accommodate EMEA/NA zone and if it suits all, we
> can fix the timing for next meetings as well.
> > > If anyone has any objections regarding this, it can be discussed in
> this thread so that we can come up with a fixed timing for the meeting.
> > >
> >
> > I'm not remarkably inconvenienced by the proposed time. 1600
> > (UTC+0530) is still 0530 EST (at present day) - so that's perhaps
> > early for those in that TZ. I'll defer to the participants from there
> > to have their feedback heard.
> >
> Agree with you Sankarshan; it will be too early for NA TZ.  We can
> work for a balanced/overlapping time probably between 1800 to 2000
> (UTC+530).
> I think in the past it was being hosted at the same time.
>
> We can discuss about it in upcoming meeting.
>

Now that we do have a regular participation at the meetings, we should
think about making them more interactive than just a read out and
reporting. Those parts can be handled through the meeting notes themselves.
I'd like to see more information sharing about the process of production of
the consumables for our users viz. health of tests, health of
infrastructure, triage of outstanding issues, new work that is coming up in
some time, keeping the documentation current and accurate etc

If we look at the meetings from the perspective of making them useful for
those who couldn't join, our updates and discussions would be very
different.

>
___

Community Meeting Calendar:

APAC Schedule -
Every 2nd and 4th Tuesday at 11:30 AM IST
Bridge: https://bluejeans.com/441850968


NA/EMEA Schedule -
Every 1st and 3rd Tuesday at 01:00 PM EDT
Bridge: https://bluejeans.com/441850968

Gluster-devel mailing list
Gluster-devel@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-devel



Re: [Gluster-devel] Community Meeting: Make it more reachable

2020-02-07 Thread Sunny Kumar
On Thu, Feb 6, 2020 at 11:47 AM sankarshan  wrote:
>
> On Thu, 6 Feb 2020 at 16:24, Yati Padia  wrote:
> >
> > Hi,
> > In response to the discussion that we had about the timings of the 
> > community meeting, I would like to propose that we can have it at 3PM/4PM 
> > IST on 11th February to accommodate EMEA/NA zone and if it suits all, we 
> > can fix the timing for next meetings as well.
> > If anyone has any objections regarding this, it can be discussed in this 
> > thread so that we can come up with a fixed timing for the meeting.
> >
>
> I'm not remarkably inconvenienced by the proposed time. 1600
> (UTC+0530) is still 0530 EST (at present day) - so that's perhaps
> early for those in that TZ. I'll defer to the participants from there
> to have their feedback heard.
>
Agree with you Sankarshan; it will be too early for NA TZ.  We can
work for a balanced/overlapping time probably between 1800 to 2000
(UTC+530).
I think in the past it was being hosted at the same time.

We can discuss about it in upcoming meeting.

/sunny
> However, if we do want to switch over, we will have to:
>
> + modify the text on the website
> + modify the email footers
>
> We already have had users pointing out that mixed/confusing messages
> about the meeting time slices make it difficult to understand.
> --
> sankars...@kadalu.io | TZ: UTC+0530
> kadalu.io : Making it easy to provision storage in k8s!
> ___
>
> Community Meeting Calendar:
>
> APAC Schedule -
> Every 2nd and 4th Tuesday at 11:30 AM IST
> Bridge: https://bluejeans.com/441850968
>
>
> NA/EMEA Schedule -
> Every 1st and 3rd Tuesday at 01:00 PM EDT
> Bridge: https://bluejeans.com/441850968
>
> Gluster-devel mailing list
> Gluster-devel@gluster.org
> https://lists.gluster.org/mailman/listinfo/gluster-devel
>

___

Community Meeting Calendar:

APAC Schedule -
Every 2nd and 4th Tuesday at 11:30 AM IST
Bridge: https://bluejeans.com/441850968


NA/EMEA Schedule -
Every 1st and 3rd Tuesday at 01:00 PM EDT
Bridge: https://bluejeans.com/441850968

Gluster-devel mailing list
Gluster-devel@gluster.org
https://lists.gluster.org/mailman/listinfo/gluster-devel



Re: [Gluster-devel] WORM-Xlator: How to get filepath in worm_create_cbk?

2020-02-07 Thread David Spisla
Hello Rafi,
storing the parent inode in frame->local from worm_create() succeed, but
now there is another error. Its frustrating, so I gave it up and proceed
with my initial solution:
In worm_create() I check via helper function (using loc->path) , if the
file should be ready for WORM or not. If not I set frame->local with
gf_true and catch the value in worm_create_cbk to skip setting the xattr.
It is working stable!

Regards
David

Am Mi., 5. Feb. 2020 um 20:51 Uhr schrieb RAFI KC :

> Hi David,
>
> As I said earlier the inode is not linked with itable, so similar to
> inode_path, inode_parent also won't work. We need to remember the parent
> inode during the worm_create. May be we can store it in the frame->local by
> creating a struct(if we have more than 2 elements to remember), or simply
> store it in the frame->local = inode_ref(loc->parent). Please make sure to
> unref/free the local.
>
>
> Regards
>
> Rafi KC
> On 2/5/20 7:18 PM, David Spisla wrote:
>
> Hello Rafi,
> I understand. I first tried the way with the parent inode. I did it this
> way:
>
> inode_t *parent_inode = NULL;
> char *filepath = NULL;
> parent_inode = inode_parent(inode, NULL, NULL); // also with fd->inode it
> didn't work
> if (!parent_inode) {
>   gf_log(this->name, GF_LOG_ERROR, "Can't get parent inode!");
> }
> inode_path(parent_inode, NULL, );
> if (!filepath) {
>gf_log(this->name, GF_LOG_ERROR, "Can't get filepath!");
> }
>
> But it didn't work. See brick log:
> [2020-02-05 13:39:56.408915] E [worm.c:489:worm_create_cbk] 0-repo2-worm:
> Can't get parent inode!
> [2020-02-05 13:39:56.408941] E [worm.c:495:worm_create_cbk] 0-repo2-worm:
> Can't get filepath!
>
> What could be wrong? If this way promise no succeed I will try out the
> other approach you suggested.
>
> Regards
> David Spisla
>
> Am Mi., 5. Feb. 2020 um 12:00 Uhr schrieb RAFI KC :
>
>>
>> On 2/5/20 4:15 PM, David Spisla wrote:
>>
>> Hello Amar,
>> I do the following in worm_create_cbk:
>>
>> char *filepath = NULL;
>> inode_path(inode, NULL, );
>> if (!filepath) {
>> gf_log(this->name, GF_LOG_ERROR, "Can't get filepath!");
>> }
>>
>> Unfortunately I got this in the brick log:
>> [2020-02-05 10:09:41.880522] E [inode.c:1498:__inode_path]
>> (-->/usr/lib64/glusterfs/5.11/xlator/features/worm.so(+0xb129)
>> [0x7f4657df7129] -->/usr/lib64/libglusterfs.so.0(inode_path+0x31)
>> [0x7f4664e44961] -->/us
>> r/lib64/libglusterfs.so.0(__inode_path+0x38b) [0x7f4664e448bb] ) 0-:
>> Assertion failed: 0
>> [2020-02-05 10:09:41.880580] W [inode.c:1500:__inode_path]
>> (-->/usr/lib64/glusterfs/5.11/xlator/features/worm.so(+0xb129)
>> [0x7f4657df7129] -->/usr/lib64/libglusterfs.so.0(inode_path+0x31)
>> [0x7f4664e44961] -->/us
>> r/lib64/libglusterfs.so.0(__inode_path+0x3d3) [0x7f4664e44903] )
>> 0-repo2-worm: invalid inode [Invalid argument]
>> [2020-02-05 10:09:41.880594] E [worm.c:488:worm_create_cbk] 0-repo2-worm:
>> Can't get filepath!
>>
>> The inode I use seems to be not valid because inode_path() returns with
>> error. The same with fd->inode. Is there a way to validate the inode before
>> passing it to the function?
>>
>> This inode hasn't linked yet to the inode table(creation is still in
>> progress), that will only happens at server4_post_create from the server
>> xlator which is the last xlator in the cbk path. That is why the inode_path
>> creation is failed. Why don't you use parent inode to create the path, I
>> believe parent inode will work for you.
>>
>>
>> If all the files and folders in the special directory follows the same
>> property, An alternative approach is to use an inode type to distinguish
>> this special directory and dentries on it. Something similar to
>> snapview-client which uses virtual inode to distinguish the .snap folder.
>>
>>
>> Regards
>>
>> Rafi KC
>>
>>
>>
>>
>> Regards
>> David
>>
>>
>>
>> Am Di., 4. Feb. 2020 um 17:57 Uhr schrieb Amar Tumballi :
>>
>>>
>>>
>>> On Tue, Feb 4, 2020 at 7:16 PM David Spisla  wrote:
>>>
 Dear Gluster Community,
 in worm_create_cbk a file gets the xattr "trusted.worm_file" and
 "trusted.start_time" if worm-file-level is enabled. Now I want to exclude
 some files in a special folder from the WORM function. Therefore I want to
 check in worm_create_cbk if the file is in this folder or not. But I don't
 find a parameter where the filepath is stored. So my alternative solution
 was, to check it in worm_create (via loc->path) and store a boolean value
 in frame->local. This boolean value will be used in worm_create_cbk later.
 But its not my favourite solution.


>>> Do you know how to get the filepath in the cbk function?


>>> As per FS guidelines, inside the filesystem, we need to handle inodes or
>>> parent-inode + basename. If you are looking at building a 'path' info in
>>> create_cbk, then i recommend using 'inode_path()' to build the path as per
>>> the latest inode table information.
>>>
>>> -Amar
>>>
>>>
>>> --
>>> https://kadalu.io
>>>