LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2006, 01:33 AM   #1
Kernel programmer
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
Mandatory Locking


A file is marked as a candidate for mandatory by setting the group-id bit in its file mode but removing the group-execute bit.Can Some body explain this in a more clearer way
 
Old 07-28-2006, 02:42 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Well, chmod g-x file; chmod g+s file. Ok, mandatory locking can be applied.
 
Old 07-28-2006, 05:00 AM   #3
Kernel programmer
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks raskin for u r quick reply.
I will tell my question even more clearly.
When I Open a file, it would be associated with a "file" structure in open file table.
Now When I apply a lock on this file, Is there any field inside "file" structure which will be a modified to tell that this file is locked or Is there any other way.
 
Old 07-28-2006, 06:21 AM   #4
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
According to your nick, you must have fresh kernel unpacked. Go to Documentation. read mandatory.txt . If you mean FILE*, well, FILE* is option. If you mean internal kernel structure - yes, but stable-api-nonsense.txt, so don't rely on it unless you are writing in-kernel code related to it in which case you look up in the source. Generally you have fcntl (read man) to get/set state of locking.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is computer cooling fan mandatory? blackzone Linux - Hardware 5 07-01-2006 07:29 PM
LXer: Congress may consider mandatory ISP snooping LXer Syndicated Linux News 0 05-02-2006 09:03 PM
Mandatory Service Pack 2 coming tuesday ?? BajaNick General 6 04-17-2005 08:59 PM
SUSE 9.2 eth0 "Waiting for mandatory devices..." DHCP problems ozric Linux - Hardware 2 03-29-2005 02:07 PM
Mandatory arguments with getopts? rose_bud4201 Programming 2 03-10-2005 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration