Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23603
b: refs/heads/master
c: 0e6b3e5
h: refs/heads/master
i:
  23601: c8cae5f
  23599: afe2333
v: v3
  • Loading branch information
Phillip Susi authored and Linus Torvalds committed Mar 25, 2006
1 parent ff04356 commit 5fd3939
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 11b0b5abb2097a63c1081d9b7e825b987b227972
refs/heads/master: 0e6b3e5e97e2e8a25bcfc528dad94edf5220dfeb
14 changes: 14 additions & 0 deletions trunk/Documentation/filesystems/udf.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ The following mount options are supported:
nostrict Unset strict conformance
iocharset= Set the NLS character set

The uid= and gid= options need a bit more explaining. They will accept a
decimal numeric value which will be used as the default ID for that mount.
They will also accept the string "ignore" and "forget". For files on the disk
that are owned by nobody ( -1 ), they will instead look as if they are owned
by the default ID. The ignore option causes the default ID to override all
IDs on the disk, not just -1. The forget option causes all IDs to be written
to disk as -1, so when the media is later remounted, they will appear to be
owned by whatever default ID it is mounted with at that time.

For typical desktop use of removable media, you should set the ID to that
of the interactively logged on user, and also specify both the forget and
ignore options. This way the interactive user will always see the files
on the disk as belonging to him.

The remaining are for debugging and disaster recovery:

novrs Skip volume sequence recognition
Expand Down
6 changes: 2 additions & 4 deletions trunk/fs/udf/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1341,13 +1341,11 @@ udf_update_inode(struct inode *inode, int do_sync)

if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_UID_FORGET))
fe->uid = cpu_to_le32(-1);
else if (inode->i_uid != UDF_SB(inode->i_sb)->s_uid)
fe->uid = cpu_to_le32(inode->i_uid);
else fe->uid = cpu_to_le32(inode->i_uid);

if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_GID_FORGET))
fe->gid = cpu_to_le32(-1);
else if (inode->i_gid != UDF_SB(inode->i_sb)->s_gid)
fe->gid = cpu_to_le32(inode->i_gid);
else fe->gid = cpu_to_le32(inode->i_gid);

udfperms = ((inode->i_mode & S_IRWXO) ) |
((inode->i_mode & S_IRWXG) << 2) |
Expand Down

0 comments on commit 5fd3939

Please sign in to comment.