* [patch] hugetlb: allow sticky directory mount option
@ 2007-10-20 18:08 Ken Chen
0 siblings, 0 replies; only message in thread
From: Ken Chen @ 2007-10-20 18:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-mm
Allow sticky directory mount option for hugetlbfs. This allows admin
to create a shared hugetlbfs mount point for multiple users, while
prevent accidental file deletion that users may step on each other.
It is similiar to default tmpfs mount option, or typical option used
on /tmp.
Signed-off-by: Ken Chen <kenchen@google.com>
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
index 12aca8e..d4951f6 100644
--- a/fs/hugetlbfs/inode.c
+++ b/fs/hugetlbfs/inode.c
@@ -769,7 +769,7 @@ hugetlbfs_parse_options(char *options
case Opt_mode:
if (match_octal(&args[0], &option))
goto bad_val;
- pconfig->mode = option & 0777U;
+ pconfig->mode = option & 01777U;
break;
case Opt_size: {
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-20 18:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-20 18:08 [patch] hugetlb: allow sticky directory mount option Ken Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox