dir.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. /*
  2. * fs/cifs/dir.c
  3. *
  4. * vfs operations that deal with dentries
  5. *
  6. * Copyright (C) International Business Machines Corp., 2002,2008
  7. * Author(s): Steve French (sfrench@us.ibm.com)
  8. *
  9. * This library is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU Lesser General Public License as published
  11. * by the Free Software Foundation; either version 2.1 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
  17. * the GNU Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  22. */
  23. #include <linux/fs.h>
  24. #include <linux/stat.h>
  25. #include <linux/slab.h>
  26. #include <linux/namei.h>
  27. #include "cifsfs.h"
  28. #include "cifspdu.h"
  29. #include "cifsglob.h"
  30. #include "cifsproto.h"
  31. #include "cifs_debug.h"
  32. #include "cifs_fs_sb.h"
  33. static void
  34. renew_parental_timestamps(struct dentry *direntry)
  35. {
  36. /* BB check if there is a way to get the kernel to do this or if we
  37. really need this */
  38. do {
  39. direntry->d_time = jiffies;
  40. direntry = direntry->d_parent;
  41. } while (!IS_ROOT(direntry));
  42. }
  43. /* Note: caller must free return buffer */
  44. char *
  45. build_path_from_dentry(struct dentry *direntry)
  46. {
  47. struct dentry *temp;
  48. int namelen;
  49. int pplen;
  50. char *full_path;
  51. char dirsep;
  52. if (direntry == NULL)
  53. return NULL; /* not much we can do if dentry is freed and
  54. we need to reopen the file after it was closed implicitly
  55. when the server crashed */
  56. dirsep = CIFS_DIR_SEP(CIFS_SB(direntry->d_sb));
  57. pplen = CIFS_SB(direntry->d_sb)->prepathlen;
  58. cifs_bp_rename_retry:
  59. namelen = pplen;
  60. for (temp = direntry; !IS_ROOT(temp);) {
  61. namelen += (1 + temp->d_name.len);
  62. temp = temp->d_parent;
  63. if (temp == NULL) {
  64. cERROR(1, ("corrupt dentry"));
  65. return NULL;
  66. }
  67. }
  68. full_path = kmalloc(namelen+1, GFP_KERNEL);
  69. if (full_path == NULL)
  70. return full_path;
  71. full_path[namelen] = 0; /* trailing null */
  72. for (temp = direntry; !IS_ROOT(temp);) {
  73. namelen -= 1 + temp->d_name.len;
  74. if (namelen < 0) {
  75. break;
  76. } else {
  77. full_path[namelen] = dirsep;
  78. strncpy(full_path + namelen + 1, temp->d_name.name,
  79. temp->d_name.len);
  80. cFYI(0, ("name: %s", full_path + namelen));
  81. }
  82. temp = temp->d_parent;
  83. if (temp == NULL) {
  84. cERROR(1, ("corrupt dentry"));
  85. kfree(full_path);
  86. return NULL;
  87. }
  88. }
  89. if (namelen != pplen) {
  90. cERROR(1,
  91. ("did not end path lookup where expected namelen is %d",
  92. namelen));
  93. /* presumably this is only possible if racing with a rename
  94. of one of the parent directories (we can not lock the dentries
  95. above us to prevent this, but retrying should be harmless) */
  96. kfree(full_path);
  97. goto cifs_bp_rename_retry;
  98. }
  99. /* DIR_SEP already set for byte 0 / vs \ but not for
  100. subsequent slashes in prepath which currently must
  101. be entered the right way - not sure if there is an alternative
  102. since the '\' is a valid posix character so we can not switch
  103. those safely to '/' if any are found in the middle of the prepath */
  104. /* BB test paths to Windows with '/' in the midst of prepath */
  105. strncpy(full_path, CIFS_SB(direntry->d_sb)->prepath, pplen);
  106. return full_path;
  107. }
  108. /* Inode operations in similar order to how they appear in Linux file fs.h */
  109. int
  110. cifs_create(struct inode *inode, struct dentry *direntry, int mode,
  111. struct nameidata *nd)
  112. {
  113. int rc = -ENOENT;
  114. int xid;
  115. int create_options = CREATE_NOT_DIR;
  116. int oplock = 0;
  117. int desiredAccess = GENERIC_READ | GENERIC_WRITE;
  118. __u16 fileHandle;
  119. struct cifs_sb_info *cifs_sb;
  120. struct cifsTconInfo *pTcon;
  121. char *full_path = NULL;
  122. FILE_ALL_INFO *buf = NULL;
  123. struct inode *newinode = NULL;
  124. struct cifsFileInfo *pCifsFile = NULL;
  125. struct cifsInodeInfo *pCifsInode;
  126. int disposition = FILE_OVERWRITE_IF;
  127. bool write_only = false;
  128. xid = GetXid();
  129. cifs_sb = CIFS_SB(inode->i_sb);
  130. pTcon = cifs_sb->tcon;
  131. full_path = build_path_from_dentry(direntry);
  132. if (full_path == NULL) {
  133. FreeXid(xid);
  134. return -ENOMEM;
  135. }
  136. if (nd && (nd->flags & LOOKUP_OPEN)) {
  137. int oflags = nd->intent.open.flags;
  138. desiredAccess = 0;
  139. if (oflags & FMODE_READ)
  140. desiredAccess |= GENERIC_READ;
  141. if (oflags & FMODE_WRITE) {
  142. desiredAccess |= GENERIC_WRITE;
  143. if (!(oflags & FMODE_READ))
  144. write_only = true;
  145. }
  146. if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
  147. disposition = FILE_CREATE;
  148. else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
  149. disposition = FILE_OVERWRITE_IF;
  150. else if ((oflags & O_CREAT) == O_CREAT)
  151. disposition = FILE_OPEN_IF;
  152. else
  153. cFYI(1, ("Create flag not set in create function"));
  154. }
  155. /* BB add processing to set equivalent of mode - e.g. via CreateX with
  156. ACLs */
  157. if (oplockEnabled)
  158. oplock = REQ_OPLOCK;
  159. buf = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL);
  160. if (buf == NULL) {
  161. kfree(full_path);
  162. FreeXid(xid);
  163. return -ENOMEM;
  164. }
  165. mode &= ~current->fs->umask;
  166. /*
  167. * if we're not using unix extensions, see if we need to set
  168. * ATTR_READONLY on the create call
  169. */
  170. if (!pTcon->unix_ext && (mode & S_IWUGO) == 0)
  171. create_options |= CREATE_OPTION_READONLY;
  172. if (cifs_sb->tcon->ses->capabilities & CAP_NT_SMBS)
  173. rc = CIFSSMBOpen(xid, pTcon, full_path, disposition,
  174. desiredAccess, create_options,
  175. &fileHandle, &oplock, buf, cifs_sb->local_nls,
  176. cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
  177. else
  178. rc = -EIO; /* no NT SMB support fall into legacy open below */
  179. if (rc == -EIO) {
  180. /* old server, retry the open legacy style */
  181. rc = SMBLegacyOpen(xid, pTcon, full_path, disposition,
  182. desiredAccess, create_options,
  183. &fileHandle, &oplock, buf, cifs_sb->local_nls,
  184. cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
  185. }
  186. if (rc) {
  187. cFYI(1, ("cifs_create returned 0x%x", rc));
  188. } else {
  189. /* If Open reported that we actually created a file
  190. then we now have to set the mode if possible */
  191. if ((pTcon->unix_ext) && (oplock & CIFS_CREATE_ACTION)) {
  192. if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID) {
  193. CIFSSMBUnixSetPerms(xid, pTcon, full_path, mode,
  194. (__u64)current->fsuid,
  195. (__u64)current->fsgid,
  196. 0 /* dev */,
  197. cifs_sb->local_nls,
  198. cifs_sb->mnt_cifs_flags &
  199. CIFS_MOUNT_MAP_SPECIAL_CHR);
  200. } else {
  201. CIFSSMBUnixSetPerms(xid, pTcon, full_path, mode,
  202. (__u64)-1,
  203. (__u64)-1,
  204. 0 /* dev */,
  205. cifs_sb->local_nls,
  206. cifs_sb->mnt_cifs_flags &
  207. CIFS_MOUNT_MAP_SPECIAL_CHR);
  208. }
  209. } else {
  210. /* BB implement mode setting via Windows security
  211. descriptors e.g. */
  212. /* CIFSSMBWinSetPerms(xid,pTcon,path,mode,-1,-1,nls);*/
  213. /* Could set r/o dos attribute if mode & 0222 == 0 */
  214. }
  215. /* server might mask mode so we have to query for it */
  216. if (pTcon->unix_ext)
  217. rc = cifs_get_inode_info_unix(&newinode, full_path,
  218. inode->i_sb, xid);
  219. else {
  220. rc = cifs_get_inode_info(&newinode, full_path,
  221. buf, inode->i_sb, xid,
  222. &fileHandle);
  223. if (newinode) {
  224. newinode->i_mode = mode;
  225. if ((oplock & CIFS_CREATE_ACTION) &&
  226. (cifs_sb->mnt_cifs_flags &
  227. CIFS_MOUNT_SET_UID)) {
  228. newinode->i_uid = current->fsuid;
  229. newinode->i_gid = current->fsgid;
  230. }
  231. }
  232. }
  233. if (rc != 0) {
  234. cFYI(1,
  235. ("Create worked but get_inode_info failed rc = %d",
  236. rc));
  237. } else {
  238. if (pTcon->nocase)
  239. direntry->d_op = &cifs_ci_dentry_ops;
  240. else
  241. direntry->d_op = &cifs_dentry_ops;
  242. d_instantiate(direntry, newinode);
  243. }
  244. if ((nd == NULL /* nfsd case - nfs srv does not set nd */) ||
  245. (!(nd->flags & LOOKUP_OPEN))) {
  246. /* mknod case - do not leave file open */
  247. CIFSSMBClose(xid, pTcon, fileHandle);
  248. } else if (newinode) {
  249. pCifsFile =
  250. kzalloc(sizeof(struct cifsFileInfo), GFP_KERNEL);
  251. if (pCifsFile == NULL)
  252. goto cifs_create_out;
  253. pCifsFile->netfid = fileHandle;
  254. pCifsFile->pid = current->tgid;
  255. pCifsFile->pInode = newinode;
  256. pCifsFile->invalidHandle = false;
  257. pCifsFile->closePend = false;
  258. init_MUTEX(&pCifsFile->fh_sem);
  259. mutex_init(&pCifsFile->lock_mutex);
  260. INIT_LIST_HEAD(&pCifsFile->llist);
  261. atomic_set(&pCifsFile->wrtPending, 0);
  262. /* set the following in open now
  263. pCifsFile->pfile = file; */
  264. write_lock(&GlobalSMBSeslock);
  265. list_add(&pCifsFile->tlist, &pTcon->openFileList);
  266. pCifsInode = CIFS_I(newinode);
  267. if (pCifsInode) {
  268. /* if readable file instance put first in list*/
  269. if (write_only) {
  270. list_add_tail(&pCifsFile->flist,
  271. &pCifsInode->openFileList);
  272. } else {
  273. list_add(&pCifsFile->flist,
  274. &pCifsInode->openFileList);
  275. }
  276. if ((oplock & 0xF) == OPLOCK_EXCLUSIVE) {
  277. pCifsInode->clientCanCacheAll = true;
  278. pCifsInode->clientCanCacheRead = true;
  279. cFYI(1, ("Exclusive Oplock inode %p",
  280. newinode));
  281. } else if ((oplock & 0xF) == OPLOCK_READ)
  282. pCifsInode->clientCanCacheRead = true;
  283. }
  284. write_unlock(&GlobalSMBSeslock);
  285. }
  286. }
  287. cifs_create_out:
  288. kfree(buf);
  289. kfree(full_path);
  290. FreeXid(xid);
  291. return rc;
  292. }
  293. int cifs_mknod(struct inode *inode, struct dentry *direntry, int mode,
  294. dev_t device_number)
  295. {
  296. int rc = -EPERM;
  297. int xid;
  298. struct cifs_sb_info *cifs_sb;
  299. struct cifsTconInfo *pTcon;
  300. char *full_path = NULL;
  301. struct inode *newinode = NULL;
  302. if (!old_valid_dev(device_number))
  303. return -EINVAL;
  304. xid = GetXid();
  305. cifs_sb = CIFS_SB(inode->i_sb);
  306. pTcon = cifs_sb->tcon;
  307. full_path = build_path_from_dentry(direntry);
  308. if (full_path == NULL)
  309. rc = -ENOMEM;
  310. else if (pTcon->unix_ext) {
  311. mode &= ~current->fs->umask;
  312. if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SET_UID) {
  313. rc = CIFSSMBUnixSetPerms(xid, pTcon, full_path,
  314. mode, (__u64)current->fsuid,
  315. (__u64)current->fsgid,
  316. device_number, cifs_sb->local_nls,
  317. cifs_sb->mnt_cifs_flags &
  318. CIFS_MOUNT_MAP_SPECIAL_CHR);
  319. } else {
  320. rc = CIFSSMBUnixSetPerms(xid, pTcon,
  321. full_path, mode, (__u64)-1, (__u64)-1,
  322. device_number, cifs_sb->local_nls,
  323. cifs_sb->mnt_cifs_flags &
  324. CIFS_MOUNT_MAP_SPECIAL_CHR);
  325. }
  326. if (!rc) {
  327. rc = cifs_get_inode_info_unix(&newinode, full_path,
  328. inode->i_sb, xid);
  329. if (pTcon->nocase)
  330. direntry->d_op = &cifs_ci_dentry_ops;
  331. else
  332. direntry->d_op = &cifs_dentry_ops;
  333. if (rc == 0)
  334. d_instantiate(direntry, newinode);
  335. }
  336. } else {
  337. if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) {
  338. int oplock = 0;
  339. u16 fileHandle;
  340. FILE_ALL_INFO *buf;
  341. cFYI(1, ("sfu compat create special file"));
  342. buf = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL);
  343. if (buf == NULL) {
  344. kfree(full_path);
  345. FreeXid(xid);
  346. return -ENOMEM;
  347. }
  348. rc = CIFSSMBOpen(xid, pTcon, full_path,
  349. FILE_CREATE, /* fail if exists */
  350. GENERIC_WRITE /* BB would
  351. WRITE_OWNER | WRITE_DAC be better? */,
  352. /* Create a file and set the
  353. file attribute to SYSTEM */
  354. CREATE_NOT_DIR | CREATE_OPTION_SPECIAL,
  355. &fileHandle, &oplock, buf,
  356. cifs_sb->local_nls,
  357. cifs_sb->mnt_cifs_flags &
  358. CIFS_MOUNT_MAP_SPECIAL_CHR);
  359. /* BB FIXME - add handling for backlevel servers
  360. which need legacy open and check for all
  361. calls to SMBOpen for fallback to SMBLeagcyOpen */
  362. if (!rc) {
  363. /* BB Do not bother to decode buf since no
  364. local inode yet to put timestamps in,
  365. but we can reuse it safely */
  366. unsigned int bytes_written;
  367. struct win_dev *pdev;
  368. pdev = (struct win_dev *)buf;
  369. if (S_ISCHR(mode)) {
  370. memcpy(pdev->type, "IntxCHR", 8);
  371. pdev->major =
  372. cpu_to_le64(MAJOR(device_number));
  373. pdev->minor =
  374. cpu_to_le64(MINOR(device_number));
  375. rc = CIFSSMBWrite(xid, pTcon,
  376. fileHandle,
  377. sizeof(struct win_dev),
  378. 0, &bytes_written, (char *)pdev,
  379. NULL, 0);
  380. } else if (S_ISBLK(mode)) {
  381. memcpy(pdev->type, "IntxBLK", 8);
  382. pdev->major =
  383. cpu_to_le64(MAJOR(device_number));
  384. pdev->minor =
  385. cpu_to_le64(MINOR(device_number));
  386. rc = CIFSSMBWrite(xid, pTcon,
  387. fileHandle,
  388. sizeof(struct win_dev),
  389. 0, &bytes_written, (char *)pdev,
  390. NULL, 0);
  391. } /* else if(S_ISFIFO */
  392. CIFSSMBClose(xid, pTcon, fileHandle);
  393. d_drop(direntry);
  394. }
  395. kfree(buf);
  396. /* add code here to set EAs */
  397. }
  398. }
  399. kfree(full_path);
  400. FreeXid(xid);
  401. return rc;
  402. }
  403. struct dentry *
  404. cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
  405. struct nameidata *nd)
  406. {
  407. int xid;
  408. int rc = 0; /* to get around spurious gcc warning, set to zero here */
  409. struct cifs_sb_info *cifs_sb;
  410. struct cifsTconInfo *pTcon;
  411. struct inode *newInode = NULL;
  412. char *full_path = NULL;
  413. xid = GetXid();
  414. cFYI(1, (" parent inode = 0x%p name is: %s and dentry = 0x%p",
  415. parent_dir_inode, direntry->d_name.name, direntry));
  416. /* check whether path exists */
  417. cifs_sb = CIFS_SB(parent_dir_inode->i_sb);
  418. pTcon = cifs_sb->tcon;
  419. /*
  420. * Don't allow the separator character in a path component.
  421. * The VFS will not allow "/", but "\" is allowed by posix.
  422. */
  423. if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)) {
  424. int i;
  425. for (i = 0; i < direntry->d_name.len; i++)
  426. if (direntry->d_name.name[i] == '\\') {
  427. cFYI(1, ("Invalid file name"));
  428. FreeXid(xid);
  429. return ERR_PTR(-EINVAL);
  430. }
  431. }
  432. /* can not grab the rename sem here since it would
  433. deadlock in the cases (beginning of sys_rename itself)
  434. in which we already have the sb rename sem */
  435. full_path = build_path_from_dentry(direntry);
  436. if (full_path == NULL) {
  437. FreeXid(xid);
  438. return ERR_PTR(-ENOMEM);
  439. }
  440. if (direntry->d_inode != NULL) {
  441. cFYI(1, (" non-NULL inode in lookup"));
  442. } else {
  443. cFYI(1, (" NULL inode in lookup"));
  444. }
  445. cFYI(1,
  446. (" Full path: %s inode = 0x%p", full_path, direntry->d_inode));
  447. if (pTcon->unix_ext)
  448. rc = cifs_get_inode_info_unix(&newInode, full_path,
  449. parent_dir_inode->i_sb, xid);
  450. else
  451. rc = cifs_get_inode_info(&newInode, full_path, NULL,
  452. parent_dir_inode->i_sb, xid, NULL);
  453. if ((rc == 0) && (newInode != NULL)) {
  454. if (pTcon->nocase)
  455. direntry->d_op = &cifs_ci_dentry_ops;
  456. else
  457. direntry->d_op = &cifs_dentry_ops;
  458. d_add(direntry, newInode);
  459. /* since paths are not looked up by component - the parent
  460. directories are presumed to be good here */
  461. renew_parental_timestamps(direntry);
  462. } else if (rc == -ENOENT) {
  463. rc = 0;
  464. direntry->d_time = jiffies;
  465. if (pTcon->nocase)
  466. direntry->d_op = &cifs_ci_dentry_ops;
  467. else
  468. direntry->d_op = &cifs_dentry_ops;
  469. d_add(direntry, NULL);
  470. /* if it was once a directory (but how can we tell?) we could do
  471. shrink_dcache_parent(direntry); */
  472. } else if (rc != -EACCES) {
  473. cERROR(1, ("Unexpected lookup error %d", rc));
  474. /* We special case check for Access Denied - since that
  475. is a common return code */
  476. }
  477. kfree(full_path);
  478. FreeXid(xid);
  479. return ERR_PTR(rc);
  480. }
  481. static int
  482. cifs_d_revalidate(struct dentry *direntry, struct nameidata *nd)
  483. {
  484. int isValid = 1;
  485. if (direntry->d_inode) {
  486. if (cifs_revalidate(direntry))
  487. return 0;
  488. } else {
  489. cFYI(1, ("neg dentry 0x%p name = %s",
  490. direntry, direntry->d_name.name));
  491. if (time_after(jiffies, direntry->d_time + HZ) ||
  492. !lookupCacheEnabled) {
  493. d_drop(direntry);
  494. isValid = 0;
  495. }
  496. }
  497. return isValid;
  498. }
  499. /* static int cifs_d_delete(struct dentry *direntry)
  500. {
  501. int rc = 0;
  502. cFYI(1, ("In cifs d_delete, name = %s", direntry->d_name.name));
  503. return rc;
  504. } */
  505. struct dentry_operations cifs_dentry_ops = {
  506. .d_revalidate = cifs_d_revalidate,
  507. /* d_delete: cifs_d_delete, */ /* not needed except for debugging */
  508. };
  509. static int cifs_ci_hash(struct dentry *dentry, struct qstr *q)
  510. {
  511. struct nls_table *codepage = CIFS_SB(dentry->d_inode->i_sb)->local_nls;
  512. unsigned long hash;
  513. int i;
  514. hash = init_name_hash();
  515. for (i = 0; i < q->len; i++)
  516. hash = partial_name_hash(nls_tolower(codepage, q->name[i]),
  517. hash);
  518. q->hash = end_name_hash(hash);
  519. return 0;
  520. }
  521. static int cifs_ci_compare(struct dentry *dentry, struct qstr *a,
  522. struct qstr *b)
  523. {
  524. struct nls_table *codepage = CIFS_SB(dentry->d_inode->i_sb)->local_nls;
  525. if ((a->len == b->len) &&
  526. (nls_strnicmp(codepage, a->name, b->name, a->len) == 0)) {
  527. /*
  528. * To preserve case, don't let an existing negative dentry's
  529. * case take precedence. If a is not a negative dentry, this
  530. * should have no side effects
  531. */
  532. memcpy(a->name, b->name, a->len);
  533. return 0;
  534. }
  535. return 1;
  536. }
  537. struct dentry_operations cifs_ci_dentry_ops = {
  538. .d_revalidate = cifs_d_revalidate,
  539. .d_hash = cifs_ci_hash,
  540. .d_compare = cifs_ci_compare,
  541. };